mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-13 11:55:11 +00:00
Merge pull request #51015 from mihir-kandoi/gh46164
This commit is contained in:
@@ -352,7 +352,7 @@ class ProductionPlan(Document):
|
||||
so_item.parent,
|
||||
so_item.item_code,
|
||||
so_item.warehouse,
|
||||
so_item.qty,
|
||||
(so_item.stock_qty - so_item.stock_reserved_qty).as_("qty"),
|
||||
so_item.work_order_qty,
|
||||
so_item.delivered_qty,
|
||||
so_item.conversion_factor,
|
||||
@@ -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)
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user