Fix: Integration test - loanWithChargesOfTypeAmountPercentageAndPeriodicAccrualAccountingEnabled

This commit is contained in:
BLasan
2021-05-30 16:24:10 +05:30
parent bee14387f4
commit 2cae552126
@@ -211,10 +211,6 @@ public class AccrualBasedAccountingProcessorForLoan implements AccountingProcess
} else { } else {
accountMap.put(account, interestAmount); accountMap.put(account, interestAmount);
} }
for (Map.Entry<GLAccount, BigDecimal> entry : accountMap.entrySet()) {
this.helper.createCreditJournalEntryOrReversalForLoan(office, currencyCode, loanId, transactionId, transactionDate,
entry.getValue(), isReversal, entry.getKey());
}
} }
// handle fees payment of writeOff (and reversals) // handle fees payment of writeOff (and reversals)
@@ -268,11 +264,6 @@ public class AccrualBasedAccountingProcessorForLoan implements AccountingProcess
accountMap.put(account, penaltiesAmount); accountMap.put(account, penaltiesAmount);
} }
} }
for (Map.Entry<GLAccount, BigDecimal> entry : accountMap.entrySet()) {
this.helper.createCreditJournalEntryOrReversalForLoan(office, currencyCode, loanId, transactionId, transactionDate,
entry.getValue(), isReversal, entry.getKey());
}
} }
if (overPaymentAmount != null && !(overPaymentAmount.compareTo(BigDecimal.ZERO) == 0)) { if (overPaymentAmount != null && !(overPaymentAmount.compareTo(BigDecimal.ZERO) == 0)) {
@@ -285,10 +276,11 @@ public class AccrualBasedAccountingProcessorForLoan implements AccountingProcess
} else { } else {
accountMap.put(account, overPaymentAmount); accountMap.put(account, overPaymentAmount);
} }
for (Map.Entry<GLAccount, BigDecimal> entry : accountMap.entrySet()) { }
this.helper.createCreditJournalEntryOrReversalForLoan(office, currencyCode, loanId, transactionId, transactionDate,
entry.getValue(), isReversal, entry.getKey()); for (Map.Entry<GLAccount, BigDecimal> entry : accountMap.entrySet()) {
} this.helper.createCreditJournalEntryOrReversalForLoan(office, currencyCode, loanId, transactionId, transactionDate,
entry.getValue(), isReversal, entry.getKey());
} }
/** /**