worked on balance

This commit was merged in pull request #31.
This commit is contained in:
Chinenye Nmoh
2025-06-24 22:21:58 +01:00
parent 35e4580313
commit 340132d8ad
3 changed files with 91 additions and 43 deletions
+6
View File
@@ -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)