mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-19 17:30:01 +00:00
fix: don't set work order status to In Process only due to skip material transfer (#58245)
This commit is contained in:
@@ -696,11 +696,7 @@ class WorkOrder(Document):
|
||||
elif self.docstatus == 1:
|
||||
if status not in ["Closed", "Stopped"]:
|
||||
status = "Not Started"
|
||||
if (
|
||||
flt(self.material_transferred_for_manufacturing) > 0
|
||||
or self.skip_transfer
|
||||
or self._has_transferred_material()
|
||||
):
|
||||
if flt(self.material_transferred_for_manufacturing) > 0 or self._has_transferred_material():
|
||||
status = "In Process"
|
||||
|
||||
precision = frappe.get_precision("Work Order", "produced_qty")
|
||||
|
||||
Reference in New Issue
Block a user