fix: Linked invoice cancellation issue via timesheet (#34337)

This commit is contained in:
Deepesh Garg 2023-03-13 18:36:43 +05:30 committed by GitHub
parent b8a61be080
commit 4416ddc4af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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:{