public abstract class TaxCollection extends Object implements org.egov.collection.integration.services.BillingIntegrationService
| Constructor and Description |
|---|
TaxCollection() |
| Modifier and Type | Method and Description |
|---|---|
void |
apportionCollection(String billRefNo,
BigDecimal amtPaid,
List<org.egov.collection.entity.ReceiptDetail> receiptDetails)
Billing system will implement this method when the billing system send "<enablebillapportioning> as true to
Collection System in the bill-xml.
|
void |
apportionPaidAmount(String billReferenceNumber,
BigDecimal actualAmountPaid,
ArrayList<org.egov.collection.entity.ReceiptDetail> receiptDetails) |
BigDecimal |
calculateTotalCollectedAmt(org.egov.collection.integration.models.BillReceiptInfo bri,
List<EgBillDetails> billDetList)
Called to calculate the total Receipt Amount i,e the amount which has been paid for the Bill From the BillReceiptInfo the
amount will be calculated.
|
protected List<org.egov.commons.Installment> |
getAllInstallments()
Gets a list of all installments for the billing system.
|
protected org.egov.commons.Installment |
getCurrentInstallment()
Finds the currently active installment.
|
protected EgDemandReason |
getCurrentReason(String categoryCode,
String reasonMasterCode)
Finds the current reason for the given master and category.
|
EgDemandDetails |
getDemandDetail(EgDemand egDemand,
org.egov.commons.Installment instl,
String code)
Finds the demand-detail for the given installment and reason.
|
protected EgDemandReasonMaster |
getDemandReasonMaster(String code)
Finds the demand-reason-master having the given code.
|
BigDecimal |
getEgBillDetailCollection(EgBillDetails billdet)
Here we get the Bill DCB(Bill Amount - Collected amount).
|
protected org.egov.commons.Installment |
getInstallmentForDate(Date date)
For a given date, finds the installment that contains it.
|
BigDecimal |
getTotalChequeAmt(org.egov.collection.integration.models.BillReceiptInfo bri)
Here we get the total cheque Amount (i.e the Amount in which the cheque gets bounced.)
|
protected abstract org.egov.infra.admin.master.entity.Module |
module()
The module that defines the billing system.
|
protected EgdmCollectedReceipt |
persistCollectedReceipts(EgDemandDetails egDemandDetails,
String receiptNumber,
BigDecimal receiptAmount,
Date receiptDate,
BigDecimal reasonAmount)
Persists the Receipt Details with the EgDemandDetail id as the reference and the status as active.
|
EgBill |
updateBillForChqBounce(org.egov.collection.integration.models.BillReceiptInfo bri,
EgBill egBill,
BigDecimal totalChqAmt)
Method will be called when a Cheque is Bounced .Here the EGBill and EgBillDetails tables are updated with the cancelled
Cheque amount.
|
abstract void |
updateDemandDetails(org.egov.collection.integration.models.BillReceiptInfo bri)
EgDemand and EgdemandDetails updation is a client specific ..
|
void |
updateReceiptDetails(Set<org.egov.collection.integration.models.BillReceiptInfo> billReceipts)
Called when there is a collection happened or a receipt cancelled or a cheque bounced.
|
protected void |
updateReceiptStatusWhenCancelled(String receiptNumber)
When receipt is cancelled the status of the receipt in EgdmCollectedReceipts is updated as Cancelled.
|
public void updateReceiptDetails(Set<org.egov.collection.integration.models.BillReceiptInfo> billReceipts) throws org.egov.infra.exception.ApplicationRuntimeException
updateReceiptDetails in interface org.egov.collection.integration.services.BillingIntegrationServicejava - .util.Setorg.egov.infra.exception.ApplicationRuntimeExceptionpublic EgBill updateBillForChqBounce(org.egov.collection.integration.models.BillReceiptInfo bri, EgBill egBill, BigDecimal totalChqAmt)
org - .egov.infstr.collections.integration.models.BillReceiptInfoorg - .egov.demand.model.EgBill egBilljava - .math.BigDecimal totalCollAmt totalCollectedAmtpublic BigDecimal calculateTotalCollectedAmt(org.egov.collection.integration.models.BillReceiptInfo bri, List<EgBillDetails> billDetList) throws InvalidAccountHeadException
org - .egov.infstr.collections.integration.models.BillReceiptInfojava - .util.ListInvalidAccountHeadExceptionpublic BigDecimal getTotalChequeAmt(org.egov.collection.integration.models.BillReceiptInfo bri)
org - .egov.infstr.collections.integration.models.BillReceiptInfoorg.egov.infra.exception.ApplicationRuntimeExceptionpublic BigDecimal getEgBillDetailCollection(EgBillDetails billdet)
org - .egov.demand.model.EgBillDetails billdetpublic abstract void updateDemandDetails(org.egov.collection.integration.models.BillReceiptInfo bri)
org - .egov.infstr.collections.integration.models.BillReceiptInfoprotected abstract org.egov.infra.admin.master.entity.Module module()
protected org.egov.commons.Installment getInstallmentForDate(Date date)
date - protected org.egov.commons.Installment getCurrentInstallment()
protected List<org.egov.commons.Installment> getAllInstallments()
protected EgDemandReasonMaster getDemandReasonMaster(String code)
code - public EgDemandDetails getDemandDetail(EgDemand egDemand, org.egov.commons.Installment instl, String code)
egDemand - instl - code - protected EgDemandReason getCurrentReason(String categoryCode, String reasonMasterCode)
categoryCode - reasonMasterCode - protected EgdmCollectedReceipt persistCollectedReceipts(EgDemandDetails egDemandDetails, String receiptNumber, BigDecimal receiptAmount, Date receiptDate, BigDecimal reasonAmount)
egDemandDetails - billRcptInfo - protected void updateReceiptStatusWhenCancelled(String receiptNumber)
egDmCollectedReceipt - public void apportionPaidAmount(String billReferenceNumber, BigDecimal actualAmountPaid, ArrayList<org.egov.collection.entity.ReceiptDetail> receiptDetails)
apportionPaidAmount in interface org.egov.collection.integration.services.BillingIntegrationServicepublic void apportionCollection(String billRefNo, BigDecimal amtPaid, List<org.egov.collection.entity.ReceiptDetail> receiptDetails)
billRefNo - Bill Reference Number of the bill send by billing systemamtPaid - Acutal amount paid at the counterreceiptDetails - List of ReceiptDetails object associated with this billCopyright © 2015–2016 eGovernments Foundation. All rights reserved.