fix for MIFOSX-821

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