From 5b1d867d49f4c43e9dc5db7c1403ddb29256c5db Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Mon, 3 Nov 2025 10:04:15 -0500 Subject: [PATCH] aloow partial to repay --- app/models/repayment.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/repayment.py b/app/models/repayment.py index 0ac1bfc..6ff673a 100644 --- a/app/models/repayment.py +++ b/app/models/repayment.py @@ -36,9 +36,8 @@ class Repayment(db.Model): def create_repayment(cls, customer_id, loan, transaction_id): # Check that the loan is active - if loan.status not in [LoanStatus.ACTIVE, LoanStatus.START_REPAY]: + if loan.status not in [LoanStatus.ACTIVE, LoanStatus.START_REPAY, LoanStatus.ACTIVE_PARTIAL]: raise ValueError(f"Repayment cannot be processed. Loan status: ({loan.status})") - repayment = cls( customer_id=customer_id,