MIFOSX-1595 : corrected interest posting if run 2 times in a period

This commit is contained in:
Pramod Nuthakki
2014-10-16 14:17:30 +05:30
parent d4f8c632d5
commit 32746c0981
2 changed files with 28 additions and 1 deletions
@@ -222,7 +222,6 @@ public class LoanAccrualWritePlatformServiceImpl implements LoanAccrualWritePlat
if (totalAccInterest == null) {
totalAccInterest = BigDecimal.ZERO;
}
interestportion = interestportion.subtract(totalAccInterest);
amount = amount.add(interestportion);
totalAccInterest = totalAccInterest.add(interestportion);
if (interestportion.compareTo(BigDecimal.ZERO) == 0) {