added salary table

This commit was merged in pull request #25.
This commit is contained in:
Chinenye Nmoh
2025-06-18 22:25:45 +01:00
parent 36cddd9327
commit ad25be1856
9 changed files with 124 additions and 21 deletions
+6
View File
@@ -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):
+11
View File
@@ -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)