[fix]: Refernce amount

This commit is contained in:
VivianDee
2025-04-17 11:39:43 +01:00
parent 2c8fda1792
commit f461b826e6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ class ProvideLoanService(BaseService):
]
loan_id = loan.id
loan_charges = LoanCharge.create_charges_for_loan(loan_id = loan_id, transaction_id = transaction_id, charges = charges)
loan_charges = LoanCharge.create_charges_for_loan(loan_id = loan_id, transaction_id = transaction_id, referenced_amount = 800, charges = charges)
# logger.error(f"********* We need to develop the fee array here")
+1 -1
View File
@@ -26,7 +26,7 @@ class LoanCharge(db.Model):
)
@classmethod
def create_charges_for_loan(cls, loan_id, transaction_id, referenced_amount = 0.0, charges):
def create_charges_for_loan(cls, loan_id, transaction_id, charges, referenced_amount = 0.0):
"""
Create loan charges for a given loan.