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

This commit is contained in:
Alan 2021-08-19 15:51:36 +05:30 committed by GitHub
parent 993b0532f8
commit 09f34e558e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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