mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-27 05:45:19 +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:
|
elif self.docstatus == 1:
|
||||||
if status not in ["Closed", "Stopped"]:
|
if status not in ["Closed", "Stopped"]:
|
||||||
status = "Not Started"
|
status = "Not Started"
|
||||||
if (
|
if flt(self.material_transferred_for_manufacturing) > 0 or self._has_transferred_material():
|
||||||
flt(self.material_transferred_for_manufacturing) > 0
|
|
||||||
or self.skip_transfer
|
|
||||||
or self._has_transferred_material()
|
|
||||||
):
|
|
||||||
status = "In Process"
|
status = "In Process"
|
||||||
|
|
||||||
precision = frappe.get_precision("Work Order", "produced_qty")
|
precision = frappe.get_precision("Work Order", "produced_qty")
|
||||||
|
|||||||
Reference in New Issue
Block a user