Fix data
This commit is contained in:
+9
-7
@@ -161,13 +161,15 @@ class Loan(db.Model):
|
||||
loan = cls.query.filter(and_( cls.customer_id ==customer_id, cls.status=='active')).first()
|
||||
|
||||
if not loan:
|
||||
loan = {
|
||||
"eligible_amount": 0,
|
||||
"loan_amount": 0,
|
||||
"customer_id": customer_id,
|
||||
"transaction_id": "",
|
||||
"resultDescription": "No Active Loan"
|
||||
}
|
||||
return None
|
||||
# loan = {
|
||||
# "original_transaction":"",
|
||||
# "eligible_amount": 0,
|
||||
# "loan_amount": 0,
|
||||
# "customer_id": customer_id,
|
||||
# "transaction_id": "",
|
||||
# "resultDescription": "No Active Loan"
|
||||
# }
|
||||
logger.info(f" get_customer_last_loan ==>>>> {loan}")
|
||||
return loan
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
},
|
||||
"productId": {
|
||||
"type": "string",
|
||||
"example": "2090"
|
||||
"example": "3MPC"
|
||||
},
|
||||
"offerId": {
|
||||
"type": "string",
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
},
|
||||
"productId": {
|
||||
"type": "string",
|
||||
"example": "2030"
|
||||
"example": "3MPC"
|
||||
},
|
||||
"amount": {
|
||||
"type": "number",
|
||||
|
||||
Reference in New Issue
Block a user