fix: sum quantity instead of requried BOM quantity

This commit is contained in:
Kavin
2025-10-08 16:19:24 +05:30
parent f23d6911f3
commit af8aa153bf

View File

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