[fix]: settled amount

This commit was merged in pull request #66.
This commit is contained in:
VivianDee
2025-10-23 09:17:59 +01:00
parent 2e08c636a2
commit 9cbc824661
2 changed files with 10 additions and 11 deletions
+6
View File
@@ -56,6 +56,12 @@ class Repayment(db.Model):
raise ValueError(f"Database integrity error: {err}")
return repayment
# Get loan repayments
@classmethod
def get_repayments_by_id(cls, loan_id):
return cls.query.filter_by(loan_id=loan_id).all()
def to_dict(self):
return {