[go: up one dir, main page]

Menu

Commit [573437] master  Maximize  Restore  History

[mifos-3321] V1.5 fix 2 - Cater for the 'initial' transaction being SAVINGS_INTEREST_POSTING

Previously, this code:

SavingsTrxnDetailEntity savedTrxn = trxn;
trxn = trxn.getAccountPayment().getAmount().isGreaterThanZero() ? getLastTrxnForPayment(trxn
.getAccountPayment()) : getLastTrxnForAdjustedPayment(trxn.getAccountPayment());
if (!savedTrxn.getAccountTrxnId().equals(trxn.getAccountTrxnId())) {
initialBalance = false;
}

processed the initial transaction to cater for deposits, withdrawals and adjustments. Because it didn't cater for interest postings it returns a null causing a NPE. The fix ignores this code if the 'initial' transaction is an interest posting.

Need to walk through with Udai that this fix is reasonable in the fuller savings calculations process.

John Woodlock John Woodlock 2010-07-12

changed application/src/main/java/org/mifos/accounts/savings/business/SavingsBO.java