From dc3c64d7e890c4515d97aa655908140e720b7d6b Mon Sep 17 00:00:00 2001 From: Smit Vora Date: Thu, 13 Mar 2025 18:33:22 +0530 Subject: [PATCH] fix: ensure qty conversion when creating production plan from SO --- .../manufacturing/doctype/production_plan/production_plan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.py b/erpnext/manufacturing/doctype/production_plan/production_plan.py index b5026464a0..74046fac24 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.py +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py @@ -363,8 +363,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") -- GitLab