eliminated some hardcoded values

This commit is contained in:
2025-04-17 17:16:01 +01:00
parent 0268bbd557
commit d2e272e44b
8 changed files with 145 additions and 9 deletions
+17
View File
@@ -0,0 +1,17 @@
from app.models import Loan, LoanCharge
class LoanService:
@classmethod
def get_loan_by_transaction_id(cls, transaction_id):
"""
Get the loan by transaction ID
"""
return Loan.get_loan_by_transaction_id(transaction_id)
@classmethod
def get_loan_charge_by_debt_id(cls, debt_id):
"""
Get the loan charge by debt ID
"""
return LoanCharge.get_loan_charge_by_debt_id(debt_id)