| Line 1120... |
Line 1120... |
| 1120 |
sdCreditRequirement.setSuggestedLimit(sdCreditRequirement.getLimit());
|
1120 |
sdCreditRequirement.setSuggestedLimit(sdCreditRequirement.getLimit());
|
| 1121 |
if (sdCreditRequirement.getUtilizedAmount().compareTo(BigDecimal.ZERO) > 0) {
|
1121 |
if (sdCreditRequirement.getUtilizedAmount().compareTo(BigDecimal.ZERO) > 0) {
|
| 1122 |
throw new ProfitMandiBusinessException("Loans are not closed", "Loans are not closed", "Loans are not closed");
|
1122 |
throw new ProfitMandiBusinessException("Loans are not closed", "Loans are not closed", "Loans are not closed");
|
| 1123 |
}
|
1123 |
}
|
| 1124 |
creditAccount.setSanctionedAmount((float) fofoSidbiSanction.getLoanAmount());
|
1124 |
creditAccount.setSanctionedAmount((float) fofoSidbiSanction.getLoanAmount());
|
| 1125 |
creditAccount.setAvailableAmount((float) fofoSidbiSanction.getLoanAmount());
|
- |
|
| 1126 |
}
|
1125 |
}
|
| 1127 |
creditAccount.setAvailableAmount(creditAccount.getSanctionedAmount());
|
1126 |
creditAccount.setAvailableAmount(creditAccount.getSanctionedAmount());
|
| 1128 |
sdCreditRequirement.setUtilizedAmount(BigDecimal.ZERO);
|
1127 |
sdCreditRequirement.setUtilizedAmount(BigDecimal.ZERO);
|
| 1129 |
creditAccount.setActive(true);
|
1128 |
creditAccount.setActive(true);
|
| 1130 |
creditAccount.setGateway(gateway);
|
1129 |
creditAccount.setGateway(gateway);
|