- $items = ttReportHelper::getItems($bean, $options); // Individual entries.
-if ($totals_only || 'no_grouping' != $group_by)
- $subtotals = ttReportHelper::getSubtotals($bean, $options); // Subtotals for groups of items.
-$totals = ttReportHelper::getTotals($bean, $options); // Totals for the entire report.
+ $items = ttReportHelper::getItems($options); // Individual entries.
+if ($totals_only || 'no_grouping' != $group_by1)
+ $subtotals = ttReportHelper::getSubtotals($options); // Subtotals for groups of items.
+$totals = ttReportHelper::getTotals($options); // Totals for the entire report.