Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
ISTE-229
Browse files Browse the repository at this point in the history
  • Loading branch information
Saloni-eGov committed Aug 9, 2024
1 parent b57214c commit 9f9cf75
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,15 @@ private void addPaymentToLedger(List<Map<String, Object>> monthlyRecordList) {
paymentLedgerReport.setCollectionDate(transactionDateLong);
paymentLedgerReport.setReceiptNo(payment.getPaymentDetails().get(0).getReceiptNumber());
paymentLedgerReport.setPaid(payment.getTotalAmountPaid());
BigDecimal totalDueAmount=payment.getTotalDue();
if(totalDueAmount.equals(BigDecimal.ZERO))
{
// BigDecimal totalDueAmount=payment.getTotalDue();
// if(totalDueAmount.equals(BigDecimal.ZERO))
// {
paymentLedgerReport.setBalanceLeft(payment.getTotalDue().subtract(paymentLedgerReport.getPaid()));
}
else
{
paymentLedgerReport.setBalanceLeft(totalDueAmount.subtract(paymentLedgerReport.getPaid()));
}
// }
// else
// {
// paymentLedgerReport.setBalanceLeft(totalDueAmount.subtract(paymentLedgerReport.getPaid()));
// }
if (ledgerReport.getPayment() == null) {
ledgerReport.setPayment(new ArrayList<>());
}
Expand Down

0 comments on commit 9f9cf75

Please sign in to comment.