Skip to content

Commit b3bcfd5

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

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
@@ -1607,8 +1607,8 @@ def close_work_order(work_order, status):
16071607
)
16081608
)
16091609

1610-
work_order.on_close_or_cancel()
16111610
work_order.update_status(status)
1611+
work_order.on_close_or_cancel()
16121612
frappe.msgprint(_("Work Order has been {0}").format(status))
16131613
work_order.notify_update()
16141614
return work_order.status

0 commit comments

Comments
 (0)