FINERACT-1981: Updated e2e tests covering the feature
This commit is contained in:
committed by
Adam Saghy
parent
6e77b0702a
commit
9d6243442c
-7
@@ -206,16 +206,9 @@ public class LoanDisbursementService {
|
||||
installmentNumber);
|
||||
chargesPayment.getLoanChargesPaid().add(loanChargePaidBy);
|
||||
disbursentMoney = disbursentMoney.plus(charge.amount());
|
||||
|
||||
// For tranche disbursement charges, we need to ensure they don't affect the loan schedule
|
||||
if (isTrancheDisbursementCharge) {
|
||||
charge.setOutstandingAmount(BigDecimal.ZERO);
|
||||
charge.setPaid(true);
|
||||
}
|
||||
}
|
||||
} else if (disbursedOn.equals(loan.getActualDisbursementDate())
|
||||
&& loan.isNoneOrCashOrUpfrontAccrualAccountingEnabledOnLoanProduct()) {
|
||||
// Handle other charges with the standard approach
|
||||
loanChargeService.handleChargeAppliedTransaction(loan, charge, disbursedOn);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user