mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 22:49:19 +00:00
Merge pull request #46515 from vorasmit/fix-qty-conversion
fix: ensure qty conversion when creating production plan from SO
This commit is contained in:
@@ -364,8 +364,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