Merge pull request #50081 from frappe/mergify/bp/version-15-hotfix/pr-49960

Fix/Support 50220 (backport #49960)
This commit is contained in:
mergify[bot]
2025-10-14 12:12:14 +00:00
committed by GitHub
parent a777a11919
commit fd72b55852

View File

@@ -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)