fix: Remove cost center query from doctypes

This commit is contained in:
Deepesh Garg
2020-11-15 22:44:39 +05:30
parent 6e5748e2a3
commit f916bc048f
12 changed files with 3 additions and 106 deletions

View File

@@ -159,16 +159,6 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
};
});
}
if (this.frm.fields_dict["items"].grid.get_field("cost_center")) {
this.frm.set_query("cost_center", "items", function(doc) {
return {
filters: {
"company": doc.company,
"is_group": 0
}
};
});
}
if (this.frm.fields_dict["items"].grid.get_field("expense_account")) {
this.frm.set_query("expense_account", "items", function(doc) {