We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a2234a commit 7c2bbe0Copy full SHA for 7c2bbe0
1 file changed
erpnext/manufacturing/doctype/work_order/work_order.py
@@ -770,6 +770,7 @@ def on_cancel(self):
770
self.db_set("status", "Cancelled")
771
772
self.on_close_or_cancel()
773
+ self.delete_job_card()
774
775
def on_close_or_cancel(self):
776
if self.production_plan and frappe.db.exists(
@@ -779,7 +780,6 @@ def on_close_or_cancel(self):
779
780
else:
781
self.update_work_order_qty_in_so()
782
- self.delete_job_card()
783
self.update_completed_qty_in_material_request()
784
self.update_planned_qty()
785
self.update_ordered_qty()
0 commit comments