From 4416ddc4afab0ba0ae61421f4c708fbdf4e490fb Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Mon, 13 Mar 2023 18:36:43 +0530 Subject: [PATCH] fix: Linked invoice cancellation issue via timesheet (#34337) --- erpnext/projects/doctype/timesheet/timesheet.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/projects/doctype/timesheet/timesheet.js b/erpnext/projects/doctype/timesheet/timesheet.js index a376bf46a5b..d1d07a79d67 100644 --- a/erpnext/projects/doctype/timesheet/timesheet.js +++ b/erpnext/projects/doctype/timesheet/timesheet.js @@ -5,6 +5,8 @@ frappe.ui.form.on("Timesheet", { setup: function(frm) { frappe.require("/assets/erpnext/js/projects/timer.js"); + frm.ignore_doctypes_on_cancel_all = ['Sales Invoice']; + frm.fields_dict.employee.get_query = function() { return { filters:{