fix: ensure qty conversion when creating production plan from SO

(cherry picked from commit 75882cc81c)
This commit is contained in:
Smit Vora
2025-03-13 18:33:22 +05:30
committed by Mergify
parent 8dc371dac2
commit 8162fb3e5d

View File

@@ -363,8 +363,8 @@ class ProductionPlan(Document):
for item in items:
item.pending_qty = (
flt(item.qty) - max(item.work_order_qty, item.delivered_qty, 0) * item.conversion_factor
)
flt(item.qty) - max(item.work_order_qty, item.delivered_qty, 0)
) * item.conversion_factor
pi = frappe.qb.DocType("Packed Item")