mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 09:54:47 +00:00
Merge pull request #52998 from frappe/mergify/bp/version-16-hotfix/pr-52997
fix(payment_entry): set precision for `total_allocated_amount` and `base_total_allocated_amount` (backport #52997)
This commit is contained in:
@@ -1065,8 +1065,12 @@ class PaymentEntry(AccountsController):
|
|||||||
total_allocated_amount += flt(d.allocated_amount)
|
total_allocated_amount += flt(d.allocated_amount)
|
||||||
base_total_allocated_amount += self.calculate_base_allocated_amount_for_reference(d)
|
base_total_allocated_amount += self.calculate_base_allocated_amount_for_reference(d)
|
||||||
|
|
||||||
self.total_allocated_amount = abs(total_allocated_amount)
|
self.total_allocated_amount = flt(
|
||||||
self.base_total_allocated_amount = abs(base_total_allocated_amount)
|
abs(total_allocated_amount), self.precision("total_allocated_amount")
|
||||||
|
)
|
||||||
|
self.base_total_allocated_amount = flt(
|
||||||
|
abs(base_total_allocated_amount), self.precision("base_total_allocated_amount")
|
||||||
|
)
|
||||||
|
|
||||||
def set_unallocated_amount(self):
|
def set_unallocated_amount(self):
|
||||||
self.unallocated_amount = 0
|
self.unallocated_amount = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user