diff --git a/erpnext/accounts/doctype/payment_reconciliation/payment_reconciliation.js b/erpnext/accounts/doctype/payment_reconciliation/payment_reconciliation.js index 75a86318fbb..74a9f709caa 100644 --- a/erpnext/accounts/doctype/payment_reconciliation/payment_reconciliation.js +++ b/erpnext/accounts/doctype/payment_reconciliation/payment_reconciliation.js @@ -61,6 +61,22 @@ erpnext.accounts.PaymentReconciliationController = class PaymentReconciliationCo }, }; }); + this.frm.set_query("cost_center", "payments", () => { + return { + filters: { + company: this.frm.doc.company, + is_group: 0, + }, + }; + }); + this.frm.set_query("cost_center", "allocation", () => { + return { + filters: { + company: this.frm.doc.company, + is_group: 0, + }, + }; + }); } refresh() {