fix: apply company,is_group filter for cost center

(cherry picked from commit dcdc1c6a89)
This commit is contained in:
l0gesh29
2025-11-04 18:31:47 +05:30
committed by Mergify
parent 3f490f11d5
commit b1816864de

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