diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.py b/erpnext/manufacturing/doctype/production_plan/production_plan.py index 681c829a652dc040a537f7bb3d5f8b9e74917b58..6f600cc08e3bbe20138e25d01c20a42217ab4d70 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.py +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py @@ -364,8 +364,8 @@ class ProductionPlan(Document): for item in items: 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")