fix: apply company,is_group filter for cost center

This commit is contained in:
l0gesh29
2025-11-04 18:31:47 +05:30
parent 4680295303
commit dcdc1c6a89

View File

@@ -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() { refresh() {