Merge branch 'define_offers' of DigiFi/digifi-BankToProductCore into master
This commit is contained in:
+4
-2
@@ -146,6 +146,8 @@ class Loan(db.Model):
|
|||||||
loan = cls.query.filter_by( customer_id = customer_id).first()
|
loan = cls.query.filter_by( customer_id = customer_id).first()
|
||||||
logger.info(f" Active Loan ==>>>> RESULT************************ AMEYE")
|
logger.info(f" Active Loan ==>>>> RESULT************************ AMEYE")
|
||||||
if not loan:
|
if not loan:
|
||||||
|
return None
|
||||||
|
|
||||||
loan = {
|
loan = {
|
||||||
"eligible_amount": 0,
|
"eligible_amount": 0,
|
||||||
"loan_amount": 0,
|
"loan_amount": 0,
|
||||||
@@ -153,8 +155,8 @@ class Loan(db.Model):
|
|||||||
"transaction_id": "",
|
"transaction_id": "",
|
||||||
"resultDescription": "No Active Loan"
|
"resultDescription": "No Active Loan"
|
||||||
}
|
}
|
||||||
logger.info(f" Active Loan ==>>>> RESULT*********************")
|
logger.info(f" Active Loan ==>>>> RESULT*********************")
|
||||||
logger.info(f" Active Loan ==>>>> {loan}")
|
logger.info(f" Active Loan ==>>>> {loan}")
|
||||||
|
|
||||||
return loan
|
return loan
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user