fix: incorrect work order status (#40407)
(cherry picked from commit 948297692e)
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user