mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-02 04:58:29 +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)
|
items = items_query.run(as_dict=True)
|
||||||
|
|
||||||
for item in items:
|
for item in items:
|
||||||
item.pending_qty = (
|
item.pending_qty = flt(item.qty) - max(
|
||||||
flt(item.qty) - max(item.work_order_qty, item.delivered_qty, 0)
|
item.work_order_qty, flt(item.delivered_qty) * item.conversion_factor, 0
|
||||||
) * item.conversion_factor
|
)
|
||||||
|
|
||||||
pi = frappe.qb.DocType("Packed Item")
|
pi = frappe.qb.DocType("Packed Item")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user