We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b4101d commit 8d06ee3Copy full SHA for 8d06ee3
1 file changed
erpnext/manufacturing/doctype/work_order/work_order.py
@@ -517,6 +517,7 @@ def on_cancel(self):
517
self.db_set("status", "Cancelled")
518
519
self.on_close_or_cancel()
520
+ self.delete_job_card()
521
522
def on_close_or_cancel(self):
523
if self.production_plan and frappe.db.exists(
@@ -526,7 +527,6 @@ def on_close_or_cancel(self):
526
527
else:
528
self.update_work_order_qty_in_so()
529
- self.delete_job_card()
530
self.update_completed_qty_in_material_request()
531
self.update_planned_qty()
532
self.update_ordered_qty()
0 commit comments