This has got to be a simple question but as a newbie, I don't know what I'm doing wrong. Group summation working well, except when there are negative values in the column. 12 + -12 = 24? Below is my clientRowGroup. Any direction appreciated.
"clientRowGroup" => array(
"progsite_code" => array(
'calculate' => [
'totalSite' => [
'sum',
'tran_amount',
"format" => "function(value) {return '$' + value.toFixed(2);}",
],
],
"bottom" => "<td colspan='999' align='right' style='background-color: #FBBC05;'><b>Program Site: {progsite_code} | Total: {totalSite}</b></td>",
),
"child_fullname" => array(
'calculate' => [
'totalChild' => [
'sum',
'tran_amount',
"format" => "function(value) {return '$' + value.toFixed(2);}",
],
],
"bottom" => "<td colspan='999' align='right' style='background-color: #DEEFFF;'><b>{child_fullname} | Total: {totalChild}</b></td>",
),
),