[fix]: Refernce amount
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user