fix: production plan pending-qty

This commit is contained in:
Sagar Sharma 2022-09-16 14:39:39 +05:30
parent 487d825ede
commit 5be7d42dfd

View File

@ -198,7 +198,9 @@ class ProductionPlan(Document):
so_item.parent,
so_item.item_code,
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.name,
)