fix: bank reconcilation tool cost center company filter adding

(cherry picked from commit 6e2ac09821)
This commit is contained in:
creative-paramu
2024-06-30 20:37:09 +05:30
committed by Mergify
parent 431fb62803
commit cd5994017c

View File

@@ -374,6 +374,13 @@ erpnext.accounts.bank_reconciliation.DialogManager = class DialogManager {
label: "Cost Center", label: "Cost Center",
options: "Cost Center", options: "Cost Center",
depends_on: "eval:doc.action=='Create Voucher' && doc.document_type=='Payment Entry'", depends_on: "eval:doc.action=='Create Voucher' && doc.document_type=='Payment Entry'",
get_query: () => {
return {
filters: {
company: this.company,
},
};
},
}, },
{ {
fieldtype: "Section Break", fieldtype: "Section Break",