mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-15 15:45:01 +00:00
fix: ensure qty conversion when creating production plan from SO
(cherry picked from commit 75882cc81c)
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user