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()
|
loan = cls.query.filter(and_( cls.customer_id ==customer_id, cls.status=='active')).first()
|
||||||
|
|
||||||
if not loan:
|
if not loan:
|
||||||
loan = {
|
return None
|
||||||
"eligible_amount": 0,
|
# loan = {
|
||||||
"loan_amount": 0,
|
# "original_transaction":"",
|
||||||
"customer_id": customer_id,
|
# "eligible_amount": 0,
|
||||||
"transaction_id": "",
|
# "loan_amount": 0,
|
||||||
"resultDescription": "No Active Loan"
|
# "customer_id": customer_id,
|
||||||
}
|
# "transaction_id": "",
|
||||||
|
# "resultDescription": "No Active Loan"
|
||||||
|
# }
|
||||||
logger.info(f" get_customer_last_loan ==>>>> {loan}")
|
logger.info(f" get_customer_last_loan ==>>>> {loan}")
|
||||||
return loan
|
return loan
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
},
|
},
|
||||||
"productId": {
|
"productId": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"example": "2090"
|
"example": "3MPC"
|
||||||
},
|
},
|
||||||
"offerId": {
|
"offerId": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
},
|
},
|
||||||
"productId": {
|
"productId": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"example": "2030"
|
"example": "3MPC"
|
||||||
},
|
},
|
||||||
"amount": {
|
"amount": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
|
|||||||
Reference in New Issue
Block a user