commit | 09f34e558eb695d451c393a6b76c7517b5f283c6 | [log] [tgz] |
---|---|---|
author | Alan <2.alan.tom@gmail.com> | Thu Aug 19 15:51:36 2021 +0530 |
committer | GitHub <noreply@github.com> | Thu Aug 19 15:51:36 2021 +0530 |
tree | 548168806d758ee451add65dd873b6c99b3b9006 | |
parent | 993b0532f8b9240c8cc5ac8fb56a202a783fab4f [diff] |
fix: set production plan to completed even on over production (#27027)
diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.py b/erpnext/manufacturing/doctype/production_plan/production_plan.py index 8c27d6c..7e7dc04 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.py +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py
@@ -297,7 +297,7 @@ 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':