X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a001599f5d6f1a803a279e602d3333cc036b69cc..72c8ed85c06c6808aff2e967f35f5db45f9ba750:/topdf.php
diff --git a/topdf.php b/topdf.php
index a0be19ec..8e0738d4 100644
--- a/topdf.php
+++ b/topdf.php
@@ -156,6 +156,7 @@ if ($totals_only) {
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('chapproved')) { $colspan++; $html .= "".$i18n->get('label.approved').' | '; }
if ($bean->getAttribute('chpaid')) { $colspan++; $html .= "".$i18n->get('label.paid').' | '; }
if ($bean->getAttribute('chip')) { $colspan++; $html .= "".$i18n->get('label.ip').' | '; }
if ($bean->getAttribute('chinvoice')) { $colspan++; $html .= ''.$i18n->get('label.invoice').' | '; }
@@ -209,6 +210,7 @@ if ($totals_only) {
$html .= $subtotals[$prev_grouped_by]['expenses'];
$html .= '';
}
+ if ($bean->getAttribute('chapproved')) $html .= ' | ';
if ($bean->getAttribute('chpaid')) $html .= ' | ';
if ($bean->getAttribute('chip')) $html .= ' | ';
if ($bean->getAttribute('chinvoice')) $html .= ' | ';
@@ -240,6 +242,11 @@ if ($totals_only) {
$html .= $item['expense'];
$html .= '';
}
+ if ($bean->getAttribute('chapproved')) {
+ $html .= '';
+ $html .= $item['approved'] == 1 ? $i18n->get('label.yes') : $i18n->get('label.no');
+ $html .= ' | ';
+ }
if ($bean->getAttribute('chpaid')) {
$html .= '';
$html .= $item['paid'] == 1 ? $i18n->get('label.yes') : $i18n->get('label.no');
@@ -300,6 +307,7 @@ if ($totals_only) {
$html .= $subtotals[$prev_grouped_by]['expenses'];
$html .= ' | ';
}
+ if ($bean->getAttribute('chapproved')) $html .= ' | ';
if ($bean->getAttribute('chpaid')) $html .= ' | ';
if ($bean->getAttribute('chip')) $html .= ' | ';
if ($bean->getAttribute('chinvoice')) $html .= ' | ';
@@ -329,6 +337,7 @@ if ($totals_only) {
$html .= $totals['expenses'];
$html .= '';
}
+ if ($bean->getAttribute('chapproved')) $html .= ' | ';
if ($bean->getAttribute('chpaid')) $html .= ' | ';
if ($bean->getAttribute('chip')) $html .= ' | ';
if ($bean->getAttribute('chinvoice')) $html .= ' | ';