This commit is contained in:
CHIEFSOFT\ameye
2025-05-11 23:44:36 -04:00
parent 3d81322515
commit 746ca486da
3 changed files with 11 additions and 9 deletions
+9 -7
View File
@@ -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
+1 -1
View File
@@ -28,7 +28,7 @@
}, },
"productId": { "productId": {
"type": "string", "type": "string",
"example": "2090" "example": "3MPC"
}, },
"offerId": { "offerId": {
"type": "string", "type": "string",
+1 -1
View File
@@ -28,7 +28,7 @@
}, },
"productId": { "productId": {
"type": "string", "type": "string",
"example": "2030" "example": "3MPC"
}, },
"amount": { "amount": {
"type": "number", "type": "number",