From 46f751e4031fb2a680cee2cb30c2b4818b22df5e Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sun, 29 Mar 2026 16:38:51 +0000 Subject: [PATCH] fix(manufacturing): update the qty precision (backport #53874) (#53884) * fix(manufacturing): update the qty precision (#53874) (cherry picked from commit f3a794384a05f7cb4b12d553d4024213a8b8fa91) # Conflicts: # erpnext/manufacturing/doctype/production_plan/production_plan.py * chore: resolve conflicts --------- Co-authored-by: Sudharsanan Ashok <135326972+Sudharsanan11@users.noreply.github.com> Co-authored-by: Mihir Kandoi --- .../manufacturing/doctype/production_plan/production_plan.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.py b/erpnext/manufacturing/doctype/production_plan/production_plan.py index d2ca6ff73fd..1d63f91caaf 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.py +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py @@ -1664,8 +1664,10 @@ def get_items_for_material_requests(doc, warehouses=None, get_parent_warehouse_d ) sales_order = data.get("sales_order") + qty_precision = frappe.get_precision("Material Request Plan Item", "quantity") for item_code, details in item_details.items(): + details.qty = flt(details.qty, qty_precision) so_item_details.setdefault(sales_order, frappe._dict()) if item_code in so_item_details.get(sales_order, {}): so_item_details[sales_order][item_code]["qty"] = so_item_details[sales_order][item_code].get(