Skip to content

Commit

Permalink
Update all non-major dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
IOhacker committed Mar 9, 2025
1 parent b725141 commit a65ff39
Showing 1 changed file with 10 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,27 +338,20 @@ private void handleGLIMAccountCreation(JsonElement element, Loan loan, AccountNu
}

if (this.fromApiJsonHelper.extractBooleanNamed("isParentAccount", element) != null) {
// empty table check
if (glimRepository.count() != 0) {
// **************Parent-Not an empty
// table********************
createAndSetGLIMAccount(totalLoan, loan, accountNumberFormat, group, applicationId);
}
createAndSetGLIMAccount(totalLoan, loan, accountNumberFormat, group, applicationId);
} else {
// TODO: This count here is weird...
if (glimRepository.count() != 0) {
// Child-Not an empty table
GroupLoanIndividualMonitoringAccount glimAccount = glimRepository.findOneByIsAcceptingChildAndApplicationId(true,
applicationId);
accountNumber = glimAccount.getAccountNumber() + (glimAccount.getChildAccountsCount() + 1);
// Retrieve the parent GLIM account for the application
GroupLoanIndividualMonitoringAccount glimAccount = glimRepository.findOneByIsAcceptingChildAndApplicationId(true,
applicationId);

if (glimAccount != null) {
// Child account creation for existing parent
String accountNumber = glimAccount.getAccountNumber() + (glimAccount.getChildAccountsCount() + 1);
loan.updateAccountNo(accountNumber);
this.glimAccountInfoWritePlatformService.incrementChildAccountCount(glimAccount);
glimAccountInfoWritePlatformService.incrementChildAccountCount(glimAccount);
loan.setGlim(glimAccount);
} else {
// **************Child-empty
// table********************
// if the glim info is empty set the current account
// as parent
// Create new parent account if none exists
createAndSetGLIMAccount(totalLoan, loan, accountNumberFormat, group, applicationId);
}
// reset in cases of last child application of glim
Expand Down

0 comments on commit a65ff39

Please sign in to comment.