mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-02 06:29:54 +00:00
Co-authored-by: Pandiyan P <pandiyanpalani37@gmail.com> Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com> fix(manufacturing): close work order status when stock reservation is… (#53714)
This commit is contained in:
@@ -587,7 +587,7 @@ class WorkOrder(Document):
|
||||
if self.docstatus == 0:
|
||||
status = "Draft"
|
||||
elif self.docstatus == 1:
|
||||
if status != "Stopped":
|
||||
if status not in ["Closed", "Stopped"]:
|
||||
status = "Not Started"
|
||||
if flt(self.material_transferred_for_manufacturing) > 0:
|
||||
status = "In Process"
|
||||
|
||||
Reference in New Issue
Block a user