fix: work order status should be in process if material transfer is skipped (backport #55641 to version-16-hotfix) (#55642)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Mihir Kandoi
2026-06-05 11:07:45 +05:30
committed by GitHub
parent 3f983c9e4d
commit 32011c3364

View File

@@ -670,7 +670,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:
if flt(self.material_transferred_for_manufacturing) > 0 or self.skip_transfer:
status = "In Process"
precision = frappe.get_precision("Work Order", "produced_qty")