From 388664188730d100555c3b145d71558e13940bad Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Thu, 10 Jul 2025 17:21:00 +0530 Subject: [PATCH] fix: missing parameter in precision function --- .../doctype/serial_and_batch_bundle/serial_and_batch_bundle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py b/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py index b7eaabd4243..0096ab82580 100644 --- a/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py +++ b/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py @@ -808,7 +808,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)