fix: reportview average of ints should be float (#26284)
This commit is contained in:
parent
3db923995c
commit
8bd40b38e1
1 changed files with 3 additions and 0 deletions
|
|
@ -327,6 +327,9 @@ frappe.ui.GroupBy = class {
|
|||
if (this.aggregate_function === "sum") {
|
||||
docfield.label = __("Sum of {0}", [__(docfield.label, null, docfield.parent)]);
|
||||
} else {
|
||||
if (docfield.fieldtype == "Int") {
|
||||
docfield.fieldtype = "Float"; // average of ints can be a float
|
||||
}
|
||||
docfield.label = __("Average of {0}", [__(docfield.label, null, docfield.parent)]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue