25 lines
1019 B
Python
25 lines
1019 B
Python
from app.models.loan_repayment_schedule import LoanRepaymentSchedule
|
|
|
|
|
|
class LoanRepaymentScheduleService:
|
|
|
|
@classmethod
|
|
def get_repayment_schedule_by_loan_id(cls, loan_id):
|
|
return LoanRepaymentSchedule.get_repayment_schedule_by_loan_id(loan_id)
|
|
@classmethod
|
|
def get_overdue_repayment_schedule(cls):
|
|
return LoanRepaymentSchedule.get_overdue_repayment_schedule()
|
|
@classmethod
|
|
def get_repayment_schedule_by_id_and_transaction_id(cls, id, transaction_id):
|
|
return LoanRepaymentSchedule.get_repayment_schedule_by_id_and_transaction_id(id, transaction_id)
|
|
|
|
@classmethod
|
|
def get_repayment_schedule_by_transaction_id(cls, transaction_id):
|
|
return LoanRepaymentSchedule.get_repayment_schedule_by_transaction_id(transaction_id)
|
|
|
|
@classmethod
|
|
def update_repayment_schedule_status(cls, schedule_id, paid):
|
|
"""
|
|
Update repayment schedule status.
|
|
"""
|
|
return LoanRepaymentSchedule.update_repayment_schedule_status(schedule_id, paid) |