mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-01 20:48:27 +00:00
fix(manufacturing): remove conversion factor for stock qty (#54525)
(cherry picked from commit 6f9089dd5b)
Co-authored-by: Sudharsanan Ashok <135326972+Sudharsanan11@users.noreply.github.com>
This commit is contained in:
@@ -382,9 +382,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