Merge pull request #593 from vishwasbabu/develop

fixed issues with combination of regular and account transfer fees at di...
This commit is contained in:
Vishwas Babu A J
2013-09-19 06:49:45 -07:00
@@ -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);