@Transactional(readOnly=true) public class ReceiptHeaderService extends org.egov.infstr.services.PersistenceService<ReceiptHeader,Long>
| Constructor and Description |
|---|
ReceiptHeaderService() |
ReceiptHeaderService(Class<ReceiptHeader> type) |
| Modifier and Type | Method and Description |
|---|---|
Set<ReceiptDetail> |
aggregateDuplicateReceiptDetailObject(List<ReceiptDetail> receiptDetailSetParam)
For Bill Based Receipt, aggregate the amount for same account heads
|
int |
checkIfMapObjectExist(List<HashMap<String,Object>> paramList,
Object[] arrayObjectInitialIndexTemp)
Method to check if the given HashMap already exists in the List of
HashMap
|
int |
checkIfReceiptDetailObjectExist(List<ReceiptDetail> newReceiptDetailSet,
ReceiptDetail receiptDetailObj)
API to check if the given receipt detail object already exists in the
list passed passed as parameter
|
List<org.egov.model.instrument.InstrumentHeader> |
createInstrument(List<org.egov.model.instrument.InstrumentHeader> instrumentHeaderList) |
Set<org.egov.model.instrument.InstrumentHeader> |
createOnlineInstrument(Date transactionDate,
String transactionId,
BigDecimal transactionAmt) |
ReceiptHeader |
createOnlineSuccessPayment(ReceiptHeader receiptHeader,
Date transactionDate,
String transactionId,
BigDecimal transactionAmt,
String authStatusCode,
String remarks,
BillingIntegrationService billingService) |
void |
createReversalVoucher(ReceiptVoucher receiptVoucher)
This method is called for voucher reversal in case of intra-day receipt
cancellation.
|
protected org.egov.commons.CVoucherHeader |
createVoucher(ReceiptHeader receiptHeader)
This method is called for voucher creation into the financial system.
|
org.egov.commons.CVoucherHeader |
createVoucherForReceipt(ReceiptHeader receiptHeader)
Creates voucher for given receipt header and maps it with the same.
|
void |
endReceiptWorkFlowOnCancellation(ReceiptHeader receiptHeaderToBeCancelled)
End Work-flow of the given cancelled receipt
|
List<ReceiptHeader> |
findAllByPositionAndInboxItemDetails(List<Long> positionIds,
String groupingCriteria) |
String |
getAdditionalInfoForReceipt(String serviceCode,
BillReceiptInfo billReceipt) |
org.egov.pims.commons.Position |
getApproverPosition(ReceiptHeader receiptHeader) |
Date |
getDataEntryCutOffDate(SimpleDateFormat sdf) |
org.egov.pims.commons.Position |
getOperatorPosition(ReceiptHeader receiptHeader) |
String |
getReceiptHeaderforDishonor(Long mode,
Long bankAccId,
Long bankId,
String chequeDDNo,
String chqueDDDate) |
org.egov.infra.reporting.engine.ReportRequest |
getReportRequest(ReceiptHeader receiptHeader) |
void |
perform(ReceiptHeader receiptHeader,
String wfState,
String newStatusCode,
String nextAction,
org.egov.pims.commons.Position ownerPosition,
String remarks) |
void |
performWorkflow(String actionName,
ReceiptHeader receiptHeader,
String remarks) |
void |
performWorkflowForAllReceipts(String actionName,
List<ReceiptHeader> receiptHeaders,
String remarks) |
ReceiptHeader |
persist(ReceiptHeader receiptHeader)
This method persists the given
ReceiptPayeeDetails entity. |
ReceiptHeader |
persistChallan(ReceiptHeader receiptHeader,
org.egov.pims.commons.Position position,
String actionName,
String approvalRemarks)
This method persists the given
ReceiptPayeeDetails entity. |
void |
persistFieldReceipt(ReceiptHeader receiptHeader,
List<org.egov.model.instrument.InstrumentHeader> instrumentHeaderList) |
ReceiptHeader |
persistReceiptObject(ReceiptHeader receiptHeader)
This method persists the given set of
ReceiptPayeeDetails
instances with receipt number as Pending |
void |
populateAndPersistReceipts(ReceiptHeader receiptHeader,
List<org.egov.model.instrument.InstrumentHeader> receiptInstrList)
This method performs the following for receipts to be newly created:
The user instrument header details, and actual amount paid by user is
captured.
A debit receipt detail account head is created for the total credit
collected.
Vouchers are created
|
ReceiptHeader |
reconcileOnlineSuccessPayment(ReceiptHeader onlinePaymentReceiptHeader,
Date txnDate,
String txnRefNo,
BigDecimal txnAmount,
String txnAuthStatus,
List<ReceiptDetail> reconstructedList,
ReceiptDetail debitAccountDetail) |
void |
setChallanService(ChallanService challanService) |
void |
setCollectionsNumberGenerator(CollectionsNumberGenerator collectionsNumberGenerator) |
void |
setCollectionsUtil(CollectionsUtil collectionsUtil) |
void |
setFinancialsUtil(FinancialsUtil financialsUtil) |
void |
setPersistenceService(org.egov.infstr.services.PersistenceService persistenceService) |
void |
setReceiptNumber(ReceiptHeader entity) |
void |
startWorkflow(ReceiptHeader receiptHeader)
Starts workflow for given set of receipt headers.
|
Boolean |
updateBillingSystem(org.egov.infstr.models.ServiceDetails serviceDetails,
Set<BillReceiptInfo> billReceipts,
BillingIntegrationService billingService)
This method looks up the bean to communicate with the billing system and
updates the billing system.
|
void |
updateBillingSystemWithReceiptInfo(ReceiptHeader receiptHeader,
BillingIntegrationService billingService,
org.egov.model.instrument.InstrumentHeader bouncedInstrumentInfo)
Updates the billing system with receipt information
|
void |
updateCashRemittance(Map<String,Object> instrumentDepositeMap,
String voucherWorkflowMsg,
Date voucherDate,
org.egov.commons.Bankaccount depositedBankAccount,
String serviceGlCode,
List<org.egov.model.instrument.InstrumentHeader> instrumentHeaderListCash,
org.egov.commons.CVoucherHeader voucherHeaderCash) |
void |
updateChequeCardRemittance(Map<String,Object> instrumentDepositeMap,
String voucherWorkflowMsg,
Boolean voucherTypeForChequeDDCard,
Date voucherDate,
org.egov.commons.Bankaccount depositedBankAccount,
String serviceGlCode,
List<org.egov.model.instrument.InstrumentHeader> instrumentHeaderListCheque,
org.egov.commons.CVoucherHeader voucherHeaderCheque) |
void |
updateCollectionIndexAndPushMail(ReceiptHeader receiptHeader) |
void |
updateDishonoredInstrumentStatus(ReceiptHeader receiptHeader,
org.egov.model.instrument.InstrumentHeader bounceInstrumentInfo,
org.egov.commons.EgwStatus receiptStatus,
boolean isReconciled) |
ReceiptHeader |
updateFinancialAndBillingSystem(ReceiptHeader receiptHeader,
BillingIntegrationService billingService) |
void |
updateInstrument(ReceiptHeader receiptHeader) |
void |
updateReceiptHeaderStatus(ReceiptHeader receiptHeader,
org.egov.commons.EgwStatus status,
boolean isReconciled)
This method updates the status and reconciliation flag for the given
receipt
|
addFilterCriteriaForObject, addIndexparams, applyAuditing, applyAuditing, create, delete, find, find, findAll, findAll, findAllBy, findAllByNamedQuery, findByExample, findById, findById, findByIdWithJoinFetch, findByNamedQuery, findPageBy, findPageByNamedQuery, getNamedQuery, getSession, getType, load, merge, update, validate, validateModelpublic ReceiptHeaderService()
public ReceiptHeaderService(Class<ReceiptHeader> type)
public List<ReceiptHeader> findAllByPositionAndInboxItemDetails(List<Long> positionIds, String groupingCriteria)
statusCode - Status code of receipts to be fetched. If null or ALL, then
receipts with all statuses are fetcheduserName - User name of the user who has created the receipts. If null or
ALL, then receipts of all users are fetchedcounterId - Counter id on which the receipts were created. If negative,
then receipts from all counters are fetchedserviceCode - Service code for which the receipts were created. If null or
ALL, then receipts of all billing services are fetchedprotected org.egov.commons.CVoucherHeader createVoucher(ReceiptHeader receiptHeader)
receiptHeader - Receipt header for which the pre-approval voucher is to be
createdreceiptBulkUpload - public org.egov.commons.CVoucherHeader createVoucherForReceipt(ReceiptHeader receiptHeader)
receiptHeader - Receipt header for which voucher is to be createdpublic void startWorkflow(ReceiptHeader receiptHeader)
receiptHeaders - set of receipt headers on which workflow is to be startedreceiptBulkUpload - public int checkIfMapObjectExist(List<HashMap<String,Object>> paramList, Object[] arrayObjectInitialIndexTemp)
queryResults - objHashMap - m - @Transactional public void updateChequeCardRemittance(Map<String,Object> instrumentDepositeMap, String voucherWorkflowMsg, Boolean voucherTypeForChequeDDCard, Date voucherDate, org.egov.commons.Bankaccount depositedBankAccount, String serviceGlCode, List<org.egov.model.instrument.InstrumentHeader> instrumentHeaderListCheque, org.egov.commons.CVoucherHeader voucherHeaderCheque)
@Transactional public void updateCashRemittance(Map<String,Object> instrumentDepositeMap, String voucherWorkflowMsg, Date voucherDate, org.egov.commons.Bankaccount depositedBankAccount, String serviceGlCode, List<org.egov.model.instrument.InstrumentHeader> instrumentHeaderListCash, org.egov.commons.CVoucherHeader voucherHeaderCash)
public Set<ReceiptDetail> aggregateDuplicateReceiptDetailObject(List<ReceiptDetail> receiptDetailSetParam)
receiptDetailSetParam - public int checkIfReceiptDetailObjectExist(List<ReceiptDetail> newReceiptDetailSet, ReceiptDetail receiptDetailObj)
newReceiptDetailSet - receiptDetailObj - public void endReceiptWorkFlowOnCancellation(ReceiptHeader receiptHeaderToBeCancelled)
receiptHeaders - Set of receipt headers to be transitionedactionName - Action name for the transitioncomment - Comment for the transition@Transactional public ReceiptHeader persist(ReceiptHeader receiptHeader) throws org.egov.infra.exception.ApplicationRuntimeException
ReceiptPayeeDetails entity.
The receipt number for all of the receipts is generated, if not already
present. If the receipt is associated with a challan, and the challan
number is not present, the challan number is generated and set into it.persist in class org.egov.infstr.services.PersistenceService<ReceiptHeader,Long>org.egov.infra.exception.ApplicationRuntimeException@Transactional public ReceiptHeader persistChallan(ReceiptHeader receiptHeader, org.egov.pims.commons.Position position, String actionName, String approvalRemarks)
ReceiptPayeeDetails entity.
If the receipt number for all of the receipts is generated, if not
already present.@Transactional public ReceiptHeader persistReceiptObject(ReceiptHeader receiptHeader)
ReceiptPayeeDetails
instances with receipt number as Pendingentity - a set of ReceiptPayeeDetails instances to be
persistedReceiptPayeeDetails instancespublic void setReceiptNumber(ReceiptHeader entity)
public void setCollectionsNumberGenerator(CollectionsNumberGenerator collectionsNumberGenerator)
@Transactional public Boolean updateBillingSystem(org.egov.infstr.models.ServiceDetails serviceDetails, Set<BillReceiptInfo> billReceipts, BillingIntegrationService billingService)
public String getAdditionalInfoForReceipt(String serviceCode, BillReceiptInfo billReceipt)
public void createReversalVoucher(ReceiptVoucher receiptVoucher)
public void updateInstrument(ReceiptHeader receiptHeader)
receiptPayeeDetails - public List<org.egov.model.instrument.InstrumentHeader> createInstrument(List<org.egov.model.instrument.InstrumentHeader> instrumentHeaderList)
@Transactional public void performWorkflow(String actionName, ReceiptHeader receiptHeader, String remarks)
@Transactional public void performWorkflowForAllReceipts(String actionName, List<ReceiptHeader> receiptHeaders, String remarks)
public org.egov.pims.commons.Position getApproverPosition(ReceiptHeader receiptHeader)
public org.egov.pims.commons.Position getOperatorPosition(ReceiptHeader receiptHeader)
@Transactional public void perform(ReceiptHeader receiptHeader, String wfState, String newStatusCode, String nextAction, org.egov.pims.commons.Position ownerPosition, String remarks)
public Set<org.egov.model.instrument.InstrumentHeader> createOnlineInstrument(Date transactionDate, String transactionId, BigDecimal transactionAmt)
public String getReceiptHeaderforDishonor(Long mode, Long bankAccId, Long bankId, String chequeDDNo, String chqueDDDate)
@Transactional public void populateAndPersistReceipts(ReceiptHeader receiptHeader, List<org.egov.model.instrument.InstrumentHeader> receiptInstrList)
The receipts are persisted and work flow is started for these persisted receipts where in the receipt state is set to NEW The billing system is updated about the persisted receipts. These include details of both newly created as well as cancelled receipts. If the instrument list and voucher list are not empty, the .... is updated The receipt ids of the newly created receipts are collectively populated to be shown on the print screen
public Date getDataEntryCutOffDate(SimpleDateFormat sdf)
@Transactional public void updateBillingSystemWithReceiptInfo(ReceiptHeader receiptHeader, BillingIntegrationService billingService, org.egov.model.instrument.InstrumentHeader bouncedInstrumentInfo)
receiptHeader - @Transactional public void updateCollectionIndexAndPushMail(ReceiptHeader receiptHeader)
public org.egov.infra.reporting.engine.ReportRequest getReportRequest(ReceiptHeader receiptHeader)
@Transactional public ReceiptHeader createOnlineSuccessPayment(ReceiptHeader receiptHeader, Date transactionDate, String transactionId, BigDecimal transactionAmt, String authStatusCode, String remarks, BillingIntegrationService billingService)
receipts - - list of receipts which have to be processed as successful
payments. For payments created as a response from bill desk,
size of the array will be 1.@Transactional public ReceiptHeader updateFinancialAndBillingSystem(ReceiptHeader receiptHeader, BillingIntegrationService billingService)
@Transactional public void persistFieldReceipt(ReceiptHeader receiptHeader, List<org.egov.model.instrument.InstrumentHeader> instrumentHeaderList)
@Transactional public void updateDishonoredInstrumentStatus(ReceiptHeader receiptHeader, org.egov.model.instrument.InstrumentHeader bounceInstrumentInfo, org.egov.commons.EgwStatus receiptStatus, boolean isReconciled)
@Transactional public void updateReceiptHeaderStatus(ReceiptHeader receiptHeader, org.egov.commons.EgwStatus status, boolean isReconciled)
receiptHeader - ReceiptHeader objects whose status and
reconciliation flag have to be modifiedstatus - a EgwStatus instance representing the state to
which the receipt has to be updated withisReconciled - a Boolean flag indicating the value for the
reconciliation status@Transactional public ReceiptHeader reconcileOnlineSuccessPayment(ReceiptHeader onlinePaymentReceiptHeader, Date txnDate, String txnRefNo, BigDecimal txnAmount, String txnAuthStatus, List<ReceiptDetail> reconstructedList, ReceiptDetail debitAccountDetail)
public void setCollectionsUtil(CollectionsUtil collectionsUtil)
public void setFinancialsUtil(FinancialsUtil financialsUtil)
public void setPersistenceService(org.egov.infstr.services.PersistenceService persistenceService)
public void setChallanService(ChallanService challanService)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.