Subversion Repositories SmartDukaan

Rev

Rev 29815 | Rev 29818 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 29815 Rev 29817
Line 3261... Line 3261...
3261
 
3261
 
3262
					creditAccount.setFofoId(fs.getId());
3262
					creditAccount.setFofoId(fs.getId());
3263
					creditAccount.setGateway(Gateway.MANDII);
3263
					creditAccount.setGateway(Gateway.MANDII);
3264
 
3264
 
3265
				}
3265
				}
-
 
3266
				if (accountStatusResponseOut.getSanctionLimit() != null) {
3266
				creditAccount.setSanctionedAmount(accountStatusResponseOut.getSanctionLimit().floatValue());
3267
					creditAccount.setSanctionedAmount(accountStatusResponseOut.getSanctionLimit().floatValue());
-
 
3268
				} else {
-
 
3269
					creditAccount.setSanctionedAmount(0);
-
 
3270
				}
-
 
3271
 
3267
				creditAccount.setInterestRate(accountStatusResponseOut.getRateOfInterest());
3272
				creditAccount.setInterestRate(accountStatusResponseOut.getRateOfInterest());
-
 
3273
				if (accountStatusResponseOut.getBalanceAmount() != null) {
3268
				creditAccount.setAvailableAmount(accountStatusResponseOut.getBalanceAmount().floatValue());
3274
					creditAccount.setAvailableAmount(accountStatusResponseOut.getBalanceAmount().floatValue());
-
 
3275
				} else {
-
 
3276
					creditAccount.setAvailableAmount(0);
-
 
3277
				}
-
 
3278
 
3269
				creditAccount.setUpdatedOn(LocalDateTime.now());
3279
				creditAccount.setUpdatedOn(LocalDateTime.now());
3270
				creditAccount.setDescription(accountStatusResponseOut.getCurrentStage().toString());
3280
				creditAccount.setDescription(accountStatusResponseOut.getCurrentStage().toString());
3271
				if (accountStatusResponseOut.getStatus().equals(EligibilityStatusEnum.SANCTION_AVAILABLE)) {
3281
				if (accountStatusResponseOut.getStatus().equals(EligibilityStatusEnum.SANCTION_AVAILABLE)) {
3272
					creditAccount.setCreditStatus(CreditStatus.SANCTIONED);
3282
					creditAccount.setCreditStatus(CreditStatus.SANCTIONED);
3273
				} else if (accountStatusResponseOut.getStatus().equals(EligibilityStatusEnum.IN_ELIGIBLE)) {
3283
				} else if (accountStatusResponseOut.getStatus().equals(EligibilityStatusEnum.IN_ELIGIBLE)) {