mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-29 03:28:32 +00:00
fix: apply company,is_group filter for cost center
(cherry picked from commit dcdc1c6a89)
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user