mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 17:15:04 +00:00
fix: missing parameter in precision function
(cherry picked from commit 3886641887)
This commit is contained in:
@@ -804,7 +804,7 @@ class SerialandBatchBundle(Document):
|
||||
if qty_field == "qty" and row.get("stock_qty"):
|
||||
qty = row.get("stock_qty")
|
||||
|
||||
precision = row.precision
|
||||
precision = row.precision(qty_field)
|
||||
if abs(abs(flt(self.total_qty, precision)) - abs(flt(qty, precision))) > 0.01:
|
||||
total_qty = frappe.format_value(abs(flt(self.total_qty)), "Float", row)
|
||||
set_qty = frappe.format_value(abs(flt(row.get(qty_field))), "Float", row)
|
||||
|
||||
Reference in New Issue
Block a user