mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-01 12:38:27 +00:00
fix(manufacturing): remove conversion factor for stock qty (#54525)
This commit is contained in:
committed by
GitHub
parent
63edd5ddc6
commit
6f9089dd5b
@@ -381,9 +381,9 @@ class ProductionPlan(Document):
|
||||
items = items_query.run(as_dict=True)
|
||||
|
||||
for item in items:
|
||||
item.pending_qty = (
|
||||
flt(item.qty) - max(item.work_order_qty, item.delivered_qty, 0)
|
||||
) * item.conversion_factor
|
||||
item.pending_qty = flt(item.qty) - max(
|
||||
item.work_order_qty, flt(item.delivered_qty) * item.conversion_factor, 0
|
||||
)
|
||||
|
||||
pi = frappe.qb.DocType("Packed Item")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user