$items = ttReportHelper::getItems($options); // Individual entries.
if ($totals_only || 'no_grouping' != $group_by)
$subtotals = ttReportHelper::getSubtotals($bean, $options); // Subtotals for groups of items.
$items = ttReportHelper::getItems($options); // Individual entries.
if ($totals_only || 'no_grouping' != $group_by)
$subtotals = ttReportHelper::getSubtotals($bean, $options); // Subtotals for groups of items.