]> wagnertech.de Git - timetracker.git/blobdiff - topdf.php
Merged getTotals and getFavTotals into one function.
[timetracker.git] / topdf.php
index 9d3164af1e458ecc3f939f983bc6a383e741da26..fdcbf683ec6bf351a841a03119eea3dfe821c869 100644 (file)
--- a/topdf.php
+++ b/topdf.php
@@ -76,10 +76,10 @@ if ('no_grouping' != $group_by) {
 // Obtain items for report.
 $options = ttReportHelper::getReportOptions($bean);
 if (!$totals_only)
-  $items = ttReportHelper::getItems($bean, $options); // Individual entries.
+  $items = ttReportHelper::getItems($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.
+$totals = ttReportHelper::getTotals($options); // Totals for the entire report.
 
 // Assign variables that are used to print subtotals.
 if ($items && 'no_grouping' != $group_by) {