From 6e2ac09821c7a5de93a12dfb4289ec0be9582e8a Mon Sep 17 00:00:00 2001 From: creative-paramu Date: Sun, 30 Jun 2024 20:37:09 +0530 Subject: [PATCH] fix: bank reconcilation tool cost center company filter adding --- .../public/js/bank_reconciliation_tool/dialog_manager.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/erpnext/public/js/bank_reconciliation_tool/dialog_manager.js b/erpnext/public/js/bank_reconciliation_tool/dialog_manager.js index 6ff38f91082..1ce6fea0c9e 100644 --- a/erpnext/public/js/bank_reconciliation_tool/dialog_manager.js +++ b/erpnext/public/js/bank_reconciliation_tool/dialog_manager.js @@ -374,6 +374,13 @@ erpnext.accounts.bank_reconciliation.DialogManager = class DialogManager { label: "Cost Center", options: "Cost Center", depends_on: "eval:doc.action=='Create Voucher' && doc.document_type=='Payment Entry'", + get_query: () => { + return { + filters: { + company: this.company, + }, + }; + }, }, { fieldtype: "Section Break",