fix: incorrect work order status (backport #40407) (#40410)

fix: incorrect work order status (#40407)

(cherry picked from commit 948297692e)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
mergify[bot]
2024-03-12 18:34:35 +05:30
committed by GitHub
parent 21b57d9aef
commit c413b04539

View File

@@ -260,6 +260,13 @@ class WorkOrder(Document):
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):