fix: Total Row in Checkbox Column Reports
This commit is contained in:
parent
1fe98d46e7
commit
d330575d49
1 changed files with 2 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue