Merge pull request #42825 from frappe/mergify/bp/version-15-hotfix/pr-42731

fix: bank reconcilation tool cost center company filter adding (backport #42731)
This commit is contained in:
ruthra kumar
2024-08-20 10:35:21 +05:30
committed by GitHub

View File

@@ -374,6 +374,14 @@ 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: {
is_group: 0,
company: this.company,
},
};
},
},
{
fieldtype: "Section Break",