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 5f4fe99d1b9..1f88453f874 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 @@ -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)