fix for MIFOSX-821

This commit is contained in:
Vishwas Babu A J
2013-12-06 18:43:56 +05:30
parent 74606b424d
commit 68089e0360
@@ -1484,7 +1484,7 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
for (final Loan loanToUpdate : loansToUpdateForLoanCounter) { for (final Loan loanToUpdate : loansToUpdateForLoanCounter) {
// Update client loan counter if loan product includeInBorrowerCycle // Update client loan counter if loan product includeInBorrowerCycle
// is true // is true
if (includeInBorrowerCycle) { if (loanToUpdate.loanProduct().isIncludeInBorrowerCycle()) {
Integer currentLoanCounter = loanToUpdate.getCurrentLoanCounter(); Integer currentLoanCounter = loanToUpdate.getCurrentLoanCounter();
if (newLoanCounter > currentLoanCounter) { if (newLoanCounter > currentLoanCounter) {
newLoanCounter = currentLoanCounter; newLoanCounter = currentLoanCounter;