X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/405a3dc75eaf770313b2da57bc25088e5c6e76bd..3b4f6b89a71f50d89d816129b27ee819a314620e:/topdf.php diff --git a/topdf.php b/topdf.php index 0040c7be..15ac1ee9 100644 --- a/topdf.php +++ b/topdf.php @@ -64,14 +64,15 @@ $totals_only = ($bean->getAttribute('chtotalsonly') == '1'); // Obtain items for report. $options = ttReportHelper::getReportOptions($bean); +$grouping = ttReportHelper::grouping($options); if (!$totals_only) $items = ttReportHelper::getItems($options); // Individual entries. -if ($totals_only || 'no_grouping' != $group_by1) +if ($totals_only || $grouping) $subtotals = ttReportHelper::getSubtotals($options); // Subtotals for groups of items. $totals = ttReportHelper::getTotals($options); // Totals for the entire report. // Assign variables that are used to print subtotals. -if ($items && 'no_grouping' != $group_by1) { +if ($items && $grouping) { $print_subtotals = true; $first_pass = true; $prev_grouped_by = '';