From fd72b55852684cfbb06915c387b44729b26d97f8 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 14 Oct 2025 12:12:14 +0000 Subject: [PATCH] Merge pull request #50081 from frappe/mergify/bp/version-15-hotfix/pr-49960 Fix/Support 50220 (backport #49960) --- .../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 37cd5d771e5..a1422bcb265 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.py +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py @@ -1840,7 +1840,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 * child.conversion_factor)) .where( (table.docstatus == 1) & (child.item_code == item_code)