added a new penal charge endpoint

This commit is contained in:
Chinenye Nmoh
2026-01-23 11:14:17 +01:00
parent 03c12fd9b5
commit 0f4455e738
4 changed files with 35 additions and 6 deletions
+9 -2
View File
@@ -48,8 +48,15 @@ class LoanRepaymentScheduleService:
return LoanRepaymentSchedule.update_repayment_schedule_description(schedule_id, description)
@classmethod
def get_overdue_repayment_schedule_with_grace_period(cls, grace_period_days):
return LoanRepaymentSchedule.get_overdue_repayment_schedule_with_grace_period(grace_period_days)
def get_overdue_repayment_schedule_with_grace_period(cls, grace_period_days, limit=None):
return LoanRepaymentSchedule.get_overdue_repayment_schedule_with_grace_period(grace_period_days, limit=limit)
@classmethod
def update_due_process_date_and_count(cls, schedule_id):
"""
Update due process date and count for a repayment schedule.
"""
return LoanRepaymentSchedule.update_due_process_date_and_count(schedule_id)
@staticmethod
def handle_schedule_updates(updated_loan, data, amount_collected, message, loan_data):
"""