| Line 209... |
Line 209... |
| 209 |
double creditAmountRequired = totalPayableAmount - walletAmount;
|
209 |
double creditAmountRequired = totalPayableAmount - walletAmount;
|
| 210 |
int loanId = 0;
|
210 |
int loanId = 0;
|
| 211 |
try {
|
211 |
try {
|
| 212 |
if (creditAmountRequired > ProfitMandiConstants.MAX_NEGATIVE_WALLET_VALUE) {
|
212 |
if (creditAmountRequired > ProfitMandiConstants.MAX_NEGATIVE_WALLET_VALUE) {
|
| 213 |
LOGGER.info("Creating new loan for: {}",userCart.getUserId());
|
213 |
LOGGER.info("Creating new loan for: {}",userCart.getUserId());
|
| 214 |
BlockLoanIdSanctionId loan = sdCreditService.createSDDirectOrder(userCart.getUserId(), creditAmountRequired, 0);
|
214 |
BlockLoanIdSanctionId loan = sdCreditService.createSDDirectOrder(userCart.getUserId(), totalPayableAmount, 0);
|
| 215 |
loanId = loan.getLoanId();
|
215 |
loanId = loan.getLoanId();
|
| 216 |
}
|
216 |
}
|
| 217 |
} catch (Exception exception){
|
217 |
} catch (Exception exception){
|
| 218 |
if (type.equals(ProfitMandiConstants.PO_TYPE.AUTO)) {
|
218 |
if (type.equals(ProfitMandiConstants.PO_TYPE.AUTO)) {
|
| 219 |
finalBidStatus = bidService.sendMailToRBM(netAmountInHand, totalPayableAmount, fofoId);
|
219 |
finalBidStatus = bidService.sendMailToRBM(netAmountInHand, totalPayableAmount, fofoId);
|