Skip to content

Commit

Permalink
fix: set production plan to completed even on over production (#27027) (
Browse files Browse the repository at this point in the history
#27434)

(cherry picked from commit 09f34e5)

Co-authored-by: Alan <2.alan.tom@gmail.com>
  • Loading branch information
frappe-pr-bot and 18alantom authored Sep 11, 2021
1 parent 8871bd4 commit 7843c3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def set_status(self):

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

0 comments on commit 7843c3d

Please sign in to comment.