Merge branch 'mifosplatform-1.8.2' into develop

This commit is contained in:
Keith Woodlock
2013-08-31 21:45:13 +01:00
@@ -302,9 +302,15 @@ public final class SavingsAccountTransaction extends AbstractPersistable<Long> {
numberOfDaysOfBalance = spanOfBalance.daysInPeriodInclusiveOfEndDate();
} else {
if (isDeposit()) {
endOfDayBalance = openingBalance.plus(getAmount(currency));
// endOfDayBalance = openingBalance.plus(getAmount(currency));
// if (endOfDayBalance.isLessThanZero()) {
endOfDayBalance = Money.of(currency, this.runningBalance);
// }
} else if (isWithdrawal() || isWithdrawalFeeAndNotReversed()) {
endOfDayBalance = openingBalance.minus(getAmount(currency));
// endOfDayBalance = openingBalance.minus(getAmount(currency));
// if (endOfDayBalance.isLessThanZero()) {
endOfDayBalance = Money.of(currency, this.runningBalance);
// }
}
}