mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-30 12:15:43 +00:00
fix(manufacturing): update status for work order before calculating planned qty
This commit is contained in:
@@ -2523,8 +2523,8 @@ def close_work_order(work_order: str, status: str):
|
||||
)
|
||||
)
|
||||
|
||||
work_order.on_close_or_cancel()
|
||||
work_order.update_status(status)
|
||||
work_order.on_close_or_cancel()
|
||||
frappe.msgprint(_("Work Order has been {0}").format(status))
|
||||
work_order.notify_update()
|
||||
return work_order.status
|
||||
|
||||
Reference in New Issue
Block a user