worked on balance
This commit was merged in pull request #31.
This commit is contained in:
@@ -86,3 +86,9 @@ class LoanService:
|
||||
"""
|
||||
# Retrieve loan
|
||||
return Loan.update_status(loan_id, status)
|
||||
@classmethod
|
||||
def update_loan_balance(cls,loan_id,amount_collected):
|
||||
"""
|
||||
update the loan balance after successful repayment
|
||||
"""
|
||||
return Loan.update_loan_balance(loan_id,amount_collected)
|
||||
|
||||
Reference in New Issue
Block a user