X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=topdf.php;h=f0fdb6023483437e1997652820bd8a9ce6c381db;hb=ad98b13400fdc2fa2299a22c9bd54c4cd27960c3;hp=b1195a4b93e9772d692b0605c2c15cfac5cb6a18;hpb=4adddb2df36c69f06192807b82d48d7d282605d3;p=timetracker.git diff --git a/topdf.php b/topdf.php index b1195a4b..f0fdb602 100644 --- a/topdf.php +++ b/topdf.php @@ -159,6 +159,7 @@ if ($totals_only) { if ($bean->getAttribute('chduration')) { $colspan++; $html .= "".$i18n->getKey('label.duration').''; } if ($bean->getAttribute('chnote')) { $colspan++; $html .= ''.$i18n->getKey('label.note').''; } if ($bean->getAttribute('chcost')) { $colspan++; $html .= "".$i18n->getKey('label.cost').''; } + if ($bean->getAttribute('chpaid')) { $colspan++; $html .= "".$i18n->getKey('label.paid').''; } if ($bean->getAttribute('chinvoice')) { $colspan++; $html .= ''.$i18n->getKey('label.invoice').''; } $html .= ''; $html .= ''; @@ -208,6 +209,7 @@ if ($totals_only) { $html .= $subtotals[$prev_grouped_by]['expenses']; $html .= ''; } + if ($bean->getAttribute('chpaid')) $html .= ''; if ($bean->getAttribute('chinvoice')) $html .= ''; $html .= ''; $html .= ' '; @@ -235,6 +237,11 @@ if ($totals_only) { $html .= $item['expense']; $html .= ''; } + if ($bean->getAttribute('chpaid')) { + $html .= ''; + $html .= $item['paid'] == 1 ? $i18n->getKey('label.yes') : $i18n->getKey('label.no'); + $html .= ''; + } if ($bean->getAttribute('chinvoice')) $html .= ''.htmlspecialchars($item['invoice']).''; $html .= ''; @@ -283,6 +290,7 @@ if ($totals_only) { $html .= $subtotals[$prev_grouped_by]['expenses']; $html .= ''; } + if ($bean->getAttribute('chpaid')) $html .= ''; if ($bean->getAttribute('chinvoice')) $html .= ''; $html .= ''; } @@ -308,6 +316,7 @@ if ($totals_only) { $html .= $totals['expenses']; $html .= ''; } + if ($bean->getAttribute('chpaid')) $html .= ''; if ($bean->getAttribute('chinvoice')) $html .= ''; $html .= ''; $html .= '';