added overdue endpoint
This commit was merged in pull request #42.
This commit is contained in:
@@ -99,3 +99,10 @@ class LoanService:
|
||||
update the loan balance after successful repayment
|
||||
"""
|
||||
return Loan.update_loan_balance(loan_id,amount_collected)
|
||||
|
||||
@classmethod
|
||||
def get_overdue_loans(cls):
|
||||
"""
|
||||
Get all overdue loans.
|
||||
"""
|
||||
return Loan.get_overdue_loans()
|
||||
|
||||
Reference in New Issue
Block a user