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

This commit is contained in:
rohitwaghchaure
2026-08-17 18:13:13 +05:30
committed by GitHub
parent 48bd3139f3
commit 73b7ec32b6

View File

@@ -427,11 +427,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")