fix: where condition

This commit is contained in:
Mihir Kandoi
2025-12-10 21:54:43 +05:30
committed by GitHub
parent 7f1c11c92e
commit 77045e45c5

View File

@@ -364,7 +364,7 @@ class ProductionPlan(Document):
.where(
(so_item.parent.isin(so_list))
& (so_item.docstatus == 1)
& (so_item.qty > so_item.work_order_qty)
& ((so_item.stock_qty - so_item.stock_reserved_qty) > so_item.work_order_qty)
)
)