Subversion Repositories SmartDukaan

Rev

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

Rev 34674 Rev 34675
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);