fix: production plan pending-qty

(cherry picked from commit 5be7d42dfd)
This commit is contained in:
Sagar Sharma
2022-09-16 14:39:39 +05:30
committed by Mergify
parent 94732479f5
commit 2dcb35da33

View File

@@ -198,7 +198,9 @@ class ProductionPlan(Document):
so_item.parent, so_item.parent,
so_item.item_code, so_item.item_code,
so_item.warehouse, so_item.warehouse,
((so_item.qty - so_item.work_order_qty) * so_item.conversion_factor).as_("pending_qty"), (
(so_item.qty - so_item.work_order_qty - so_item.delivered_qty) * so_item.conversion_factor
).as_("pending_qty"),
so_item.description, so_item.description,
so_item.name, so_item.name,
) )