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

(cherry picked from commit 09f34e558e)

Co-authored-by: Alan <2.alan.tom@gmail.com>

[skip ci]
This commit is contained in:
Frappe PR Bot
2021-08-19 16:20:06 +05:30
committed by GitHub
parent 02a23bae58
commit 74af3be968

View File

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