added penal charge to schedule
This commit was merged in pull request #67.
This commit is contained in:
@@ -44,6 +44,12 @@ class LoanRepaymentScheduleService:
|
||||
Update repayment schedule balance.
|
||||
"""
|
||||
return LoanRepaymentSchedule.update_repayment_schedule_balance(schedule_id, amount_collected)
|
||||
@classmethod
|
||||
def calculate_penal_charge(cls, schedule):
|
||||
"""
|
||||
Calculate penal charge for a repayment schedule.
|
||||
"""
|
||||
return LoanRepaymentSchedule.calculate_penal_charge(schedule)
|
||||
|
||||
@classmethod
|
||||
def update_repayment_schedule_description(cls, schedule_id, description):
|
||||
@@ -57,11 +63,11 @@ class LoanRepaymentScheduleService:
|
||||
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):
|
||||
def apply_penal_to_schedule(cls, schedule_id, penal_amount):
|
||||
"""
|
||||
Update due process date and count for a repayment schedule.
|
||||
Apply penal charge to a repayment schedule.
|
||||
"""
|
||||
return LoanRepaymentSchedule.update_due_process_date_and_count(schedule_id)
|
||||
return LoanRepaymentSchedule.apply_penal_to_schedule(schedule_id, penal_amount)
|
||||
@staticmethod
|
||||
def handle_schedule_updates(updated_loan, data, amount_collected, message, loan_data):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user