fix: cost center should only show option of selectedcompany

This commit is contained in:
Afshan 2020-07-06 23:52:11 +05:30
parent 5f299a08bd
commit 3819c0bf28

View File

@ -113,6 +113,14 @@ cur_frm.cscript.calculate_total_amount = function(doc,cdt,cdn){
cur_frm.cscript.calculate_total(doc,cdt,cdn);
};
cur_frm.fields_dict['cost_center'].get_query = function(doc) {
return {
filters: {
"company": doc.company
}
}
}
erpnext.expense_claim = {
set_title: function(frm) {
if (!frm.doc.task) {