From: Nik Okuntseff Date: Sun, 21 Jan 2018 19:14:05 +0000 (+0000) Subject: Fixed pdf reports to output paid status. X-Git-Tag: timetracker_1.19-1~1348 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b0f22cc10650051b1b7d58a33a6d4d603f936f0b;p=timetracker.git Fixed pdf reports to output paid status. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 9a141507..ea48a8a8 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
- '; } if ($bean->getAttribute('chnote')) { $colspan++; $html .= ''; } if ($bean->getAttribute('chcost')) { $colspan++; $html .= "'; } + if ($bean->getAttribute('chpaid')) { $colspan++; $html .= "'; } if ($bean->getAttribute('chinvoice')) { $colspan++; $html .= ''; } $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 .= ''; + } if ($bean->getAttribute('chinvoice')) $html .= ''; $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 .= '
 Anuko Time Tracker 1.15.3.3771 | Copyright © Anuko | +  Anuko Time Tracker 1.15.3.3772 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} 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').''.$i18n->getKey('label.note').'".$i18n->getKey('label.cost').'".$i18n->getKey('label.paid').''.$i18n->getKey('label.invoice').'
 
'; + $html .= $item['paid'] == 1 ? $i18n->getKey('label.yes') : $i18n->getKey('label.no'); + $html .= ''.htmlspecialchars($item['invoice']).'
';