added salary table
This commit was merged in pull request #25.
This commit is contained in:
@@ -43,6 +43,12 @@ class RepaymentService:
|
||||
Get the latest repayment without a repay date.
|
||||
"""
|
||||
return Repayment.get_latest_repayment_without_repay_date()
|
||||
@classmethod
|
||||
def get_latest_repayment_with_loanId(cls,loan_id):
|
||||
"""
|
||||
Get the latest repayment with loan id.
|
||||
"""
|
||||
return Repayment.get_latest_repayment_with_loanId(loan_id)
|
||||
|
||||
@classmethod
|
||||
def get_latest_loan_with_repay_date(cls):
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
from app.models import Salary
|
||||
|
||||
class SalaryService:
|
||||
|
||||
|
||||
@classmethod
|
||||
def add_salary_data(cls,data):
|
||||
"""
|
||||
Add a new salary data entry.
|
||||
"""
|
||||
return Salary.add_salary_data(data)
|
||||
Reference in New Issue
Block a user