fix: don't set work order status to In Process only due to skip material transfer (#58245)

This commit is contained in:
rohitwaghchaure
2026-08-17 18:28:46 +05:30
committed by GitHub
parent 861fb26b2c
commit dd4d10862d

View File

@@ -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")