changed balance to 2 decimal place

This commit was merged in pull request #30.
This commit is contained in:
Chinenye Nmoh
2025-06-23 11:09:28 +01:00
parent 3d62cbc157
commit 35e4580313
+1 -1
View File
@@ -55,7 +55,7 @@ class RepaymentsData(db.Model):
customer_id=data.get('customerId'), customer_id=data.get('customerId'),
amount_collected=amountCollected, amount_collected=amountCollected,
repayment_amount=repaymentAmount, repayment_amount=repaymentAmount,
balance=accountBalance balance=round(float(accountBalance), 2)
) )
db.session.add(new_data) db.session.add(new_data)
db.session.commit() db.session.commit()