From e63b4831dae58e804d064c63c0c11b5ca7fded5c Mon Sep 17 00:00:00 2001 From: liugang Date: Wed, 9 Apr 2025 10:41:13 +0800 Subject: [PATCH] + [bug#61325] display two decimal places in column totals. --- module/pivot/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/pivot/model.php b/module/pivot/model.php index 296719c038..31c4c3377b 100644 --- a/module/pivot/model.php +++ b/module/pivot/model.php @@ -1200,6 +1200,7 @@ class pivotModel extends model /* Delete drilldown config of summary row. */ foreach($summary as $key => $value) { + if(isset($value['value']) && is_numeric($value['value'])) $summary[$key]['value'] = round($summary[$key]['value'], 2); if(isset($value['drillFields'])) { unset($summary[$key]['drillFields']);