fix: set production plan to completed even on over production (#27027) (#27434)

(cherry picked from commit 09f34e558e)

Co-authored-by: Alan <2.alan.tom@gmail.com>
This commit is contained in:
Frappe PR Bot
2021-09-11 13:21:46 +05:30
committed by GitHub
parent 8871bd4bfb
commit 7843c3d51a

View File

@@ -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':