changed balance to 2 decimal place
This commit was merged in pull request #30.
This commit is contained in:
@@ -55,7 +55,7 @@ class RepaymentsData(db.Model):
|
||||
customer_id=data.get('customerId'),
|
||||
amount_collected=amountCollected,
|
||||
repayment_amount=repaymentAmount,
|
||||
balance=accountBalance
|
||||
balance=round(float(accountBalance), 2)
|
||||
)
|
||||
db.session.add(new_data)
|
||||
db.session.commit()
|
||||
|
||||
Reference in New Issue
Block a user