mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-04 15:39:57 +00:00
* fix(manufacturing): update the qty precision (#53874)
(cherry picked from commit f3a794384a)
# 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 <kandoimihir@gmail.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user