Skip to content

Commit 61d339c

Browse files
Sudharsanan11mergify[bot]
authored andcommitted
fix(manufacturing): update status for work order before calculating planned qty
(cherry picked from commit 4d40c84)
1 parent 843c0d4 commit 61d339c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

erpnext/manufacturing/doctype/work_order/work_order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2506,8 +2506,8 @@ def close_work_order(work_order, status):
25062506
)
25072507
)
25082508

2509-
work_order.on_close_or_cancel()
25102509
work_order.update_status(status)
2510+
work_order.on_close_or_cancel()
25112511
frappe.msgprint(_("Work Order has been {0}").format(status))
25122512
work_order.notify_update()
25132513
return work_order.status

0 commit comments

Comments
 (0)