@Transactional(readOnly=true) public class CollectionCommon extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.egov.infstr.services.PersistenceService |
persistenceService |
| Constructor and Description |
|---|
CollectionCommon() |
| Modifier and Type | Method and Description |
|---|---|
ReceiptDetail |
addDebitAccountHeadDetails(BigDecimal debitAmount,
ReceiptHeader receiptHeader,
BigDecimal chequeInstrumenttotal,
BigDecimal otherInstrumenttotal,
String instrumentType) |
List<ReceiptDetail> |
apportionBillAmount(BigDecimal actualAmountPaid,
ArrayList<ReceiptDetail> receiptDetails) |
void |
cancelChallanReceipt(ReceiptHeader receiptHeader,
boolean cancelInstrument)
This method cancels the given receipt.
|
void |
cancelChallanReceiptOnCreation(ReceiptHeader receiptHeader)
This method cancels the receipt against a challan.
|
PaymentRequest |
createPaymentRequest(org.egov.infstr.models.ServiceDetails paymentServiceDetails,
ReceiptHeader receiptHeader) |
PaymentResponse |
createPaymentResponse(org.egov.infstr.models.ServiceDetails paymentServiceDetails,
String response)
This method returns the payment response object for the given response
string.
|
ReceiptHeader |
createPendingReceiptFromCancelledChallanReceipt(ReceiptHeader oldReceiptHeader)
This method create a new receipt header object with details contained in
given receipt header object.
|
String |
generateChallan(ReceiptHeader receipt,
boolean flag)
This method generates a challan for the given receipt
|
String |
generateReport(ReceiptHeader[] receipts,
boolean flag)
This method generates a report for the given array of receipts
|
String |
getFinancialYearIdByDate(Date date)
This method is used to get the financial Year Id for the given date
|
protected PaymentGatewayAdaptor |
getPaymentGatewayAdaptor(String serviceCode) |
ReceiptHeader |
initialiseReceiptModelWithBillInfo(BillInfo collDetails,
org.egov.commons.Fund fund,
org.egov.infra.admin.master.entity.Department dept)
This method initialises the model, a list of
ReceiptPayeeDetails objects with the information contained
in the unmarshalled BillCollection instance. |
List<ReceiptDetailInfo> |
setAccountPayeeList(ReceiptHeader rh) |
void |
setCollectionsUtil(CollectionsUtil collectionsUtil) |
void |
setEgovCommon(org.egov.egf.commons.EgovCommon egovCommon) |
void |
setFinancialsUtil(FinancialsUtil financialsUtil) |
void |
setPersistenceService(org.egov.infstr.services.PersistenceService persistenceService) |
List<ReceiptDetailInfo> |
setReceiptDetailsList(ReceiptHeader rh,
String amountType) |
void |
setReceiptHeaderService(ReceiptHeaderService receiptHeaderService) |
org.egov.model.instrument.InstrumentHeader |
validateAndConstructBankInstrument(PaymentInfoBank paytInfoBank)
Checks if the bank instrument number, transaction number, transaction
date, bank branch, bank account number are valid
|
org.egov.model.instrument.InstrumentHeader |
validateAndConstructCashInstrument(PaymentInfoCash paytInfoCash) |
org.egov.model.instrument.InstrumentHeader |
validateAndConstructChequeDDInstrument(PaymentInfoChequeDD paytInfoChequeDD)
Checks if the cheque/DD instrument number, instrument date, are valid.
|
protected org.egov.infstr.services.PersistenceService persistenceService
public void setReceiptHeaderService(ReceiptHeaderService receiptHeaderService)
receiptHeaderService - the receipt header Service to be setpublic void setPersistenceService(org.egov.infstr.services.PersistenceService persistenceService)
persistenceService - the persistenceService to setpublic void setCollectionsUtil(CollectionsUtil collectionsUtil)
collectionsUtil - the collectionsUtil to setpublic void setFinancialsUtil(FinancialsUtil financialsUtil)
FinancialsUtil - the FinancialsUtil to setpublic ReceiptDetail addDebitAccountHeadDetails(BigDecimal debitAmount, ReceiptHeader receiptHeader, BigDecimal chequeInstrumenttotal, BigDecimal otherInstrumenttotal, String instrumentType)
public ReceiptHeader initialiseReceiptModelWithBillInfo(BillInfo collDetails, org.egov.commons.Fund fund, org.egov.infra.admin.master.entity.Department dept) throws org.egov.infra.validation.exception.ValidationException
ReceiptPayeeDetails objects with the information contained
in the unmarshalled BillCollection instance.org.egov.infra.validation.exception.ValidationExceptionpublic PaymentResponse createPaymentResponse(org.egov.infstr.models.ServiceDetails paymentServiceDetails, String response)
paymentServiceDetails - response - public String generateReport(ReceiptHeader[] receipts, boolean flag)
receipts - an array of ReceiptHeader objects for which the
report is to be generatedflag - a boolean value indicating if the generated report should also
have the print optionpublic String generateChallan(ReceiptHeader receipt, boolean flag)
receipt - ReceiptHeader object for which the report is to
be generatedflag - a boolean value indicating if the generated challan should
also have the print optionpublic PaymentRequest createPaymentRequest(org.egov.infstr.models.ServiceDetails paymentServiceDetails, ReceiptHeader receiptHeader)
protected PaymentGatewayAdaptor getPaymentGatewayAdaptor(String serviceCode)
public void setEgovCommon(org.egov.egf.commons.EgovCommon egovCommon)
egovCommon - the egovCommon to setpublic List<ReceiptDetailInfo> setReceiptDetailsList(ReceiptHeader rh, String amountType)
public List<ReceiptDetailInfo> setAccountPayeeList(ReceiptHeader rh)
public void cancelChallanReceiptOnCreation(ReceiptHeader receiptHeader)
receiptHeader - the ReceiptHeader which contains a reference to
the receipt to be cancelled.public ReceiptHeader createPendingReceiptFromCancelledChallanReceipt(ReceiptHeader oldReceiptHeader)
ReceiptPayeeDetail object .oldReceiptHeader - the instance of ReceiptHeader whose data is to be
copied@Transactional public void cancelChallanReceipt(ReceiptHeader receiptHeader, boolean cancelInstrument)
receiptHeader - the ReceiptHeader instance which has to be
cancelledcancelInstrument - a boolean value indicating if the instrument should be
cancelledpublic String getFinancialYearIdByDate(Date date)
public org.egov.model.instrument.InstrumentHeader validateAndConstructCashInstrument(PaymentInfoCash paytInfoCash)
public org.egov.model.instrument.InstrumentHeader validateAndConstructBankInstrument(PaymentInfoBank paytInfoBank)
paytInfoBank - public org.egov.model.instrument.InstrumentHeader validateAndConstructChequeDDInstrument(PaymentInfoChequeDD paytInfoChequeDD)
paytInfoBank - public List<ReceiptDetail> apportionBillAmount(BigDecimal actualAmountPaid, ArrayList<ReceiptDetail> receiptDetails)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.