mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-17 22:12:12 +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:
|
for item in items:
|
||||||
item.pending_qty = (
|
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")
|
pi = frappe.qb.DocType("Packed Item")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user