Skip to content

Commit

Permalink
fix: incorrect work order status (backport #40407) (#40411)
Browse files Browse the repository at this point in the history
fix: incorrect work order status (#40407)

(cherry picked from commit 9482976)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
  • Loading branch information
mergify[bot] and rohitwaghchaure authored Mar 12, 2024
1 parent f932265 commit 605132a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions erpnext/manufacturing/doctype/work_order/work_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,13 @@ def get_status(self, status=None):
else:
status = "Cancelled"

if (
self.skip_transfer
and self.produced_qty
and self.qty > (flt(self.produced_qty) + flt(self.process_loss_qty))
):
status = "In Process"

return status

def update_work_order_qty(self):
Expand Down

0 comments on commit 605132a

Please sign in to comment.