From: Nik Okuntseff Date: Sun, 24 Feb 2019 22:02:23 +0000 (+0000) Subject: Fixed export to files and PDF with approved column. X-Git-Tag: timetracker_1.19-1~274 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=72c8ed85c06c6808aff2e967f35f5db45f9ba750;p=timetracker.git Fixed export to files and PDF with approved column. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index a0611066..6cb7a806 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('chapproved')) { $colspan++; $html .= "'; } if ($bean->getAttribute('chpaid')) { $colspan++; $html .= "'; } if ($bean->getAttribute('chip')) { $colspan++; $html .= "'; } if ($bean->getAttribute('chinvoice')) { $colspan++; $html .= ''; } @@ -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 .= ''; + } if ($bean->getAttribute('chpaid')) { $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 .= '';
 Anuko Time Tracker 1.18.43.4772 | Copyright © Anuko | +  Anuko Time Tracker 1.18.43.4773 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/tofile.php b/tofile.php index f4d5b29e..9399c787 100644 --- a/tofile.php +++ b/tofile.php @@ -140,6 +140,7 @@ if ('xml' == $type) { print $item['expense']; print "]]>\n"; } + if ($bean->getAttribute('chapproved')) print "\t\n"; if ($bean->getAttribute('chpaid')) print "\t\n"; if ($bean->getAttribute('chip')) { $ip = $item['modified'] ? $item['modified_ip'].' '.$item['modified'] : $item['created_ip'].' '.$item['created']; @@ -207,6 +208,7 @@ if ('csv' == $type) { if ($bean->getAttribute('chunits')) print ',"'.$i18n->get('label.work_units_short').'"'; if ($bean->getAttribute('chnote')) print ',"'.$i18n->get('label.note').'"'; if ($bean->getAttribute('chcost')) print ',"'.$i18n->get('label.cost').'"'; + if ($bean->getAttribute('chapproved')) print ',"'.$i18n->get('label.approved').'"'; if ($bean->getAttribute('chpaid')) print ',"'.$i18n->get('label.paid').'"'; if ($bean->getAttribute('chip')) print ',"'.$i18n->get('label.ip').'"'; if ($bean->getAttribute('chinvoice')) print ',"'.$i18n->get('label.invoice').'"'; @@ -237,6 +239,7 @@ if ('csv' == $type) { else print ',"'.$item['expense'].'"'; } + if ($bean->getAttribute('chapproved')) print ',"'.$item['approved'].'"'; if ($bean->getAttribute('chpaid')) print ',"'.$item['paid'].'"'; if ($bean->getAttribute('chip')) { $ip = $item['modified'] ? $item['modified_ip'].' '.$item['modified'] : $item['created_ip'].' '.$item['created']; 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').''.$i18n->get('label.note').'".$i18n->get('label.cost').'".$i18n->get('label.approved').'".$i18n->get('label.paid').'".$i18n->get('label.ip').''.$i18n->get('label.invoice').''; + $html .= $item['approved'] == 1 ? $i18n->get('label.yes') : $i18n->get('label.no'); + $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 .= '