added repayment_schedule
This commit was merged in pull request #43.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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_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)
|
||||
Reference in New Issue
Block a user