mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-23 04:04:52 +00:00
fix: incorrect work order status (#40407)
(cherry picked from commit 948297692e)
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -330,6 +330,13 @@ class WorkOrder(Document):
|
|||||||
else:
|
else:
|
||||||
status = "Cancelled"
|
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
|
return status
|
||||||
|
|
||||||
def update_work_order_qty(self):
|
def update_work_order_qty(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user