X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=topdf.php;h=15ac1ee92b15b6fa86f79822845035c3fed7c624;hb=03c03896828d818303c12dfe2e368f5bd9e7dbae;hp=23f29d5084c3ef0905652faf3809681d2ec1839c;hpb=913eba1427598741fcfb8d1e53746923c1f9e0e4;p=timetracker.git diff --git a/topdf.php b/topdf.php index 23f29d50..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 || ttReportHelper::grouping($options)) +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 = '';