From 948297692e8c7467b90883983731b4794b81e81a Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Tue, 12 Mar 2024 18:11:00 +0530 Subject: [PATCH] fix: incorrect work order status (#40407) --- erpnext/manufacturing/doctype/work_order/work_order.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/erpnext/manufacturing/doctype/work_order/work_order.py b/erpnext/manufacturing/doctype/work_order/work_order.py index 5e227071504..fc85712efaf 100644 --- a/erpnext/manufacturing/doctype/work_order/work_order.py +++ b/erpnext/manufacturing/doctype/work_order/work_order.py @@ -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):