fix: Added default dimension and filter in bootinfo

This commit is contained in:
deepeshgarg007
2019-07-17 15:38:21 +05:30
parent b590f89310
commit 7d270edf79
21 changed files with 219 additions and 129 deletions

View File

@@ -63,20 +63,6 @@ $.extend(erpnext, {
me.show_serial_batch_selector(grid_row.frm, grid_row.doc);
});
},
get_dimension_filters: async function() {
if (!frappe.model.can_read('Accounting Dimension')) {
return [];
}
let dimensions = await frappe.db.get_list('Accounting Dimension', {
fields: ['label', 'fieldname', 'document_type', 'default_dimension'],
filters: {
disabled: 0
}
});
return dimensions;
}
});