fixed issues with combination of regular and account transfer fees at disbursal

This commit is contained in:
Vishwas Babu A J
2013-09-19 19:18:52 +05:30
parent 73105c8485
commit ae4a665015
@@ -1458,7 +1458,7 @@ public class Loan extends AbstractPersistable<Long> {
final LoanTransaction chargesPayment = LoanTransaction.repaymentAtDisbursement(this.getOffice(),
charge.getAmount(getCurrency()), null, disbursedOn, txnExternalId);
final Money zero = Money.zero(getCurrency());
chargesPayment.updateComponents(zero, zero, totalFeeChargesDueAtDisbursement, zero);
chargesPayment.updateComponents(zero, zero, charge.getAmount(getCurrency()), zero);
chargesPayment.updateLoan(this);
this.loanTransactions.add(chargesPayment);