fix: bank reconcilation tool cost center company filter adding

This commit is contained in:
creative-paramu
2024-06-30 20:37:09 +05:30
parent f6a4d391c0
commit 6e2ac09821

View File

@@ -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",