From c51a9025b3c6c2ae459a34d72264af474fabd75c Mon Sep 17 00:00:00 2001 From: Nihal Roshan <82870227+NihalRoshanCK@users.noreply.github.com> Date: Mon, 3 Nov 2025 14:00:36 +0530 Subject: [PATCH] refactor: remove company filter 'Bank' doctype has no 'company' field. (cherry picked from commit f1682ea90eb1c12fd3b0c6df8d7eb7c663fb3ee5) --- erpnext/accounts/doctype/bank_guarantee/bank_guarantee.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/erpnext/accounts/doctype/bank_guarantee/bank_guarantee.js b/erpnext/accounts/doctype/bank_guarantee/bank_guarantee.js index 060c4b5edaa..c34e0f9099c 100644 --- a/erpnext/accounts/doctype/bank_guarantee/bank_guarantee.js +++ b/erpnext/accounts/doctype/bank_guarantee/bank_guarantee.js @@ -9,13 +9,6 @@ cur_frm.add_fetch("bank", "swift_number", "swift_number"); frappe.ui.form.on("Bank Guarantee", { setup: function (frm) { - frm.set_query("bank", function () { - return { - filters: { - company: frm.doc.company, - }, - }; - }); frm.set_query("bank_account", function () { return { filters: {