update
This commit was merged in pull request #9.
This commit is contained in:
@@ -33,7 +33,6 @@ class Repayment(db.Model):
|
|||||||
# Check that the loan is active
|
# Check that the loan is active
|
||||||
if loan.status != LoanStatus.ACTIVE:
|
if loan.status != LoanStatus.ACTIVE:
|
||||||
raise ValueError(f"Repayment cannot be processed. Loan status: ({loan.status})")
|
raise ValueError(f"Repayment cannot be processed. Loan status: ({loan.status})")
|
||||||
|
|
||||||
|
|
||||||
repayment = cls(
|
repayment = cls(
|
||||||
customer_id=customer_id,
|
customer_id=customer_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user