if ('no_grouping' != $group_by)
$subtotals = ttReportHelper::getSubtotals($bean, $options);
-$totals = ttReportHelper::getTotals($bean, $options);
+$totals = ttReportHelper::getTotals($options);
// Assign variables that are used to print subtotals.
if ($report_items && 'no_grouping' != $group_by) {