Subversion Repositories SmartDukaan

Rev

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

Rev 34566 Rev 34568
Line 195... Line 195...
195
 
195
 
196
            double creditAmountRequired = totalPayableAmount - walletAmount;
196
            double creditAmountRequired = totalPayableAmount - walletAmount;
197
            int loanId = 0;
197
            int loanId = 0;
198
            try {
198
            try {
199
                if (creditAmountRequired > ProfitMandiConstants.MAX_NEGATIVE_WALLET_VALUE) {
199
                if (creditAmountRequired > ProfitMandiConstants.MAX_NEGATIVE_WALLET_VALUE) {
200
                    Loan loan = sdCreditService.createLoan(userCart.getUserId(), creditAmountRequired, 365, "Credit limit assigned via SD Credit");
200
                    Loan loan = sdCreditService.createLoan(userCart.getUserId(), creditAmountRequired, 0, "Credit limit assigned via SD Credit");
201
                    loanId = loan.getId();
201
                    loanId = loan.getId();
202
                }
202
                }
203
            } catch (Exception exception){
203
            } catch (Exception exception){
204
                if (type.equals(ProfitMandiConstants.PO_TYPE.AUTO)) {
204
                if (type.equals(ProfitMandiConstants.PO_TYPE.AUTO)) {
205
                    bidService.sendMailToRBM(netAmountInHand, totalPayableAmount, fofoId);
205
                    bidService.sendMailToRBM(netAmountInHand, totalPayableAmount, fofoId);