X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a536a682560e3f5d21c960994ebe410e5aef5931..e171b4e97c8dd9322362d88d6722551f7c44f6cf:/topdf.php diff --git a/topdf.php b/topdf.php index eb09bc45..b7ac19d5 100644 --- a/topdf.php +++ b/topdf.php @@ -109,6 +109,7 @@ if ($totals_only) { $html .= ""; $html .= ''.htmlspecialchars($group_by_header).''; if ($bean->getAttribute('chduration')) { $colspan++; $html .= "".$i18n->get('label.duration').''; } + if ($bean->getAttribute('chunits')) { $colspan++; $html .= "".$i18n->get('label.work_units_short').''; } if ($bean->getAttribute('chcost')) { $colspan++; $html .= "".$i18n->get('label.cost').''; } $html .= ''; $html .= ''; @@ -117,6 +118,7 @@ if ($totals_only) { $html .= ''; $html .= ''.htmlspecialchars($subtotal['name']).''; if ($bean->getAttribute('chduration')) $html .= "".$subtotal['time'].''; + if ($bean->getAttribute('chunits')) $html .= "".$subtotal['units'].''; if ($bean->getAttribute('chcost')) { $html .= ""; if ($user->can('manage_invoices') || $user->isClient()) @@ -132,6 +134,7 @@ if ($totals_only) { $html .= ""; $html .= ''.$i18n->get('label.total').''; if ($bean->getAttribute('chduration')) $html .= "".$totals['time'].''; + if ($bean->getAttribute('chunits')) $html .= "".$totals['units'].''; if ($bean->getAttribute('chcost')) { $html .= ""; $html .= htmlspecialchars($user->currency).' '; @@ -158,6 +161,7 @@ if ($totals_only) { if ($bean->getAttribute('chstart')) { $colspan++; $html .= "".$i18n->get('label.start').''; } if ($bean->getAttribute('chfinish')) { $colspan++; $html .= "".$i18n->get('label.finish').''; } if ($bean->getAttribute('chduration')) { $colspan++; $html .= "".$i18n->get('label.duration').''; } + if ($bean->getAttribute('chunits')) { $colspan++; $html .= "".$i18n->get('label.work_units_short').''; } if ($bean->getAttribute('chnote')) { $colspan++; $html .= ''.$i18n->get('label.note').''; } if ($bean->getAttribute('chcost')) { $colspan++; $html .= "".$i18n->get('label.cost').''; } if ($bean->getAttribute('chpaid')) { $colspan++; $html .= "".$i18n->get('label.paid').''; } @@ -202,6 +206,7 @@ if ($totals_only) { if ($bean->getAttribute('chstart')) $html .= ''; if ($bean->getAttribute('chfinish')) $html .= ''; if ($bean->getAttribute('chduration')) $html .= "".$subtotals[$prev_grouped_by]['time'].''; + if ($bean->getAttribute('chunits')) $html .= "".$subtotals[$prev_grouped_by]['units'].''; if ($bean->getAttribute('chnote')) $html .= ''; if ($bean->getAttribute('chcost')) { $html .= ""; @@ -231,6 +236,7 @@ if ($totals_only) { if ($bean->getAttribute('chstart')) $html .= "".$item['start'].''; if ($bean->getAttribute('chfinish')) $html .= "".$item['finish'].''; if ($bean->getAttribute('chduration')) $html .= "".$item['duration'].''; + if ($bean->getAttribute('chunits')) $html .= "".$item['units'].''; if ($bean->getAttribute('chnote')) $html .= ''.htmlspecialchars($item['note']).''; if ($bean->getAttribute('chcost')) { $html .= ""; @@ -289,6 +295,7 @@ if ($totals_only) { if ($bean->getAttribute('chstart')) $html .= ''; if ($bean->getAttribute('chfinish')) $html .= ''; if ($bean->getAttribute('chduration')) $html .= "".$subtotals[$prev_grouped_by]['time'].''; + if ($bean->getAttribute('chunits')) $html .= "".$subtotals[$prev_grouped_by]['units'].''; if ($bean->getAttribute('chnote')) $html .= ''; if ($bean->getAttribute('chcost')) { $html .= ""; @@ -316,6 +323,7 @@ if ($totals_only) { if ($bean->getAttribute('chstart')) $html .= ''; if ($bean->getAttribute('chfinish')) $html .= ''; if ($bean->getAttribute('chduration')) $html .= "".$totals['time'].''; + if ($bean->getAttribute('chunits')) $html .= "".$totals['units'].''; if ($bean->getAttribute('chnote')) $html .= ''; if ($bean->getAttribute('chcost')) { $html .= "".htmlspecialchars($user->currency).' ';