mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-13 23:38:01 +00:00
fix: precision of total penalty paid
(cherry picked from commit 589dd17e58)
This commit is contained in:
@@ -265,7 +265,7 @@ class LoanRepayment(AccountsController):
|
|||||||
regenerate_repayment_schedule(self.against_loan, cancel)
|
regenerate_repayment_schedule(self.against_loan, cancel)
|
||||||
|
|
||||||
def allocate_amounts(self, repayment_details):
|
def allocate_amounts(self, repayment_details):
|
||||||
precision = 2
|
precision = cint(frappe.db.get_default("currency_precision")) or 2
|
||||||
self.set("repayment_details", [])
|
self.set("repayment_details", [])
|
||||||
self.principal_amount_paid = 0
|
self.principal_amount_paid = 0
|
||||||
self.total_penalty_paid = 0
|
self.total_penalty_paid = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user