From 74af3be968cc4bc377ca00a0da816b2f722301c9 Mon Sep 17 00:00:00 2001 From: Frappe PR Bot Date: Thu, 19 Aug 2021 16:20:06 +0530 Subject: [PATCH] fix: set production plan to completed even on over production (#27027) (#27032) (cherry picked from commit 09f34e558eb695d451c393a6b76c7517b5f283c6) Co-authored-by: Alan <2.alan.tom@gmail.com> [skip ci] --- .../manufacturing/doctype/production_plan/production_plan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.py b/erpnext/manufacturing/doctype/production_plan/production_plan.py index 8c27d6ccc96..7e7dc044e4e 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.py +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py @@ -297,7 +297,7 @@ class ProductionPlan(Document): if self.total_produced_qty > 0: self.status = "In Process" - if self.total_produced_qty == self.total_planned_qty: + if self.total_produced_qty >= self.total_planned_qty: self.status = "Completed" if self.status != 'Completed':