feat: Add new report column property disable_total (#9909)
* Adding new column property disable_total * Sider fix * Sider fix Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
This commit is contained in:
parent
a5daf8ffa1
commit
8a2c85c687
1 changed files with 3 additions and 1 deletions
|
|
@ -675,7 +675,9 @@ Object.assign(frappe.utils, {
|
|||
return __(frappe.utils.to_title_case(route[0], true));
|
||||
},
|
||||
report_column_total: function(values, column, type) {
|
||||
if (values.length > 0) {
|
||||
if (column.column.disable_total) {
|
||||
return '';
|
||||
} else if (values.length > 0) {
|
||||
if (column.column.fieldtype == "Percent" || type === "mean") {
|
||||
return values.reduce((a, b) => a + flt(b)) / values.length;
|
||||
} else if (column.column.fieldtype == "Int") {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue