fix: Total Row in Checkbox Column Reports

This commit is contained in:
marination 2020-11-04 23:18:39 +05:30
parent 1fe98d46e7
commit d330575d49

View file

@ -1043,7 +1043,8 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
// applied to Float, Currency fields, needed only for currency formatting.
// make first data column have value 'Total'
let index = 1;
if (this.datatable && this.datatable.options.checkboxColumn) index = 2;
let datatable = this.report_settings.get_datatable_options({});
if (datatable && datatable.checkboxColumn) index = 2;
if (column.colIndex === index && !value) {
value = "Total";