fix: incorrect work order status (#40407)

This commit is contained in:
rohitwaghchaure
2024-03-12 18:11:00 +05:30
committed by GitHub
parent 79a0473705
commit 948297692e

View File

@@ -330,6 +330,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):