FINERACT-1971: Include downpayment as last repayment in Collection data

This commit is contained in:
Adam Saghy
2024-02-14 14:01:24 +01:00
committed by taskain7
parent 1d2fc73715
commit d06b0562f1
3 changed files with 72 additions and 3 deletions
@@ -147,7 +147,7 @@ public class DelinquencyReadPlatformServiceImpl implements DelinquencyReadPlatfo
collectionData.setLastPaymentAmount(lastPayment.getAmount());
}
final LoanTransaction lastRepaymentTransaction = loan.getLastRepaymentTransaction();
final LoanTransaction lastRepaymentTransaction = loan.getLastRepaymentOrDownPaymentTransaction();
if (lastRepaymentTransaction != null) {
collectionData.setLastRepaymentDate(lastRepaymentTransaction.getTransactionDate());
collectionData.setLastRepaymentAmount(lastRepaymentTransaction.getAmount());