mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
fix: where condition
This commit is contained in:
@@ -364,7 +364,7 @@ class ProductionPlan(Document):
|
|||||||
.where(
|
.where(
|
||||||
(so_item.parent.isin(so_list))
|
(so_item.parent.isin(so_list))
|
||||||
& (so_item.docstatus == 1)
|
& (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)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user