From af8aa153bf13f8b6b9bee019a64b0817d65278a5 Mon Sep 17 00:00:00 2001 From: Kavin <78342682+kavin0411@users.noreply.github.com> Date: Wed, 8 Oct 2025 16:19:24 +0530 Subject: [PATCH] fix: sum quantity instead of requried BOM quantity --- .../manufacturing/doctype/production_plan/production_plan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.py b/erpnext/manufacturing/doctype/production_plan/production_plan.py index 97a6fe49b0e..d8823e649bb 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.py +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py @@ -1927,7 +1927,7 @@ def get_reserved_qty_for_production_plan(item_code, warehouse): frappe.qb.from_(table) .inner_join(child) .on(table.name == child.parent) - .select(Sum(child.required_bom_qty)) + .select(Sum(child.quantity)) .where( (table.docstatus == 1) & (child.item_code == item_code)