fix for MIFOSX-821
This commit is contained in:
+1
-1
@@ -1481,7 +1481,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;
|
||||||
|
|||||||
Reference in New Issue
Block a user