| Line 9176... |
Line 9176... |
| 9176 |
amountToLoan = amountToLoan + creditTxn.amount
|
9176 |
amountToLoan = amountToLoan + creditTxn.amount
|
| 9177 |
if creditTxn.credit_type in [CreditTxnType.BLOCKED]:
|
9177 |
if creditTxn.credit_type in [CreditTxnType.BLOCKED]:
|
| 9178 |
amountToBlocked = amountToBlocked + creditTxn.amount
|
9178 |
amountToBlocked = amountToBlocked + creditTxn.amount
|
| 9179 |
|
9179 |
|
| 9180 |
if amountToLoan > userSanction.credit_blocked:
|
9180 |
if amountToLoan > userSanction.credit_blocked:
|
| 9181 |
logging.info("Error: Not Enough Credit to Process For Loan. Payment Id:- "+str(paymentId) + " Shipping Id:- "+str(creditTxns[0].shipping_id))
|
9181 |
logging.info("Error: Not Enough Credit to Process For Loan. Payment Id:- "+str(paymentId) + " Shipping Id:- "+str(creditTxns[0].shipping_id)+" Amount to Loan:- "+str(amountToLoan))
|
| 9182 |
raise TransactionServiceException(224, "Error: Not Enough Credit to Process For Loan. Payment Id:- "+str(paymentId) + " Shipping Id:- "+str(creditTxns[0].shipping_id))
|
9182 |
raise TransactionServiceException(224, "Error: Not Enough Credit to Process For Loan. Payment Id:- "+str(paymentId) + " Shipping Id:- "+str(creditTxns[0].shipping_id)+ "Amount to Loan:- "+str(amountToLoan))
|
| 9183 |
|
9183 |
|
| 9184 |
if amountToReversed > userSanction.credit_blocked:
|
9184 |
if amountToReversed > userSanction.credit_blocked:
|
| 9185 |
logging.info("Error: Not Enough Credit to Process For Reversal. Payment Id:- "+str(paymentId) + " Shipping Id:- "+str(creditTxns[0].shipping_id))
|
9185 |
logging.info("Error: Not Enough Credit to Process For Reversal. Payment Id:- "+str(paymentId) + " Shipping Id:- "+str(creditTxns[0].shipping_id))
|
| 9186 |
raise TransactionServiceException(225, "Error: Not Enough Credit to Process For Reversal. Payment Id:- "+str(paymentId) + " Shipping Id:- "+str(creditTxns[0].shipping_id))
|
9186 |
raise TransactionServiceException(225, "Error: Not Enough Credit to Process For Reversal. Payment Id:- "+str(paymentId) + " Shipping Id:- "+str(creditTxns[0].shipping_id))
|
| 9187 |
|
9187 |
|