fix(manufacturing): update status for work order before calculating planned qty

This commit is contained in:
Sudharsanan11
2026-02-19 12:59:11 +05:30
parent 29bc300282
commit 4d40c84a31

View File

@@ -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