From 7843c3d51a160a8ce84e835ce27daede11b3c7d6 Mon Sep 17 00:00:00 2001 From: Frappe PR Bot Date: Sat, 11 Sep 2021 13:21:46 +0530 Subject: [PATCH] fix: set production plan to completed even on over production (#27027) (#27434) (cherry picked from commit 09f34e558eb695d451c393a6b76c7517b5f283c6) Co-authored-by: Alan <2.alan.tom@gmail.com> --- .../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 1b2cd542a4f..e42bc2d5ffb 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.py +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py @@ -228,7 +228,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':