From f81ad45ed1f9178834ff56f4a3a2ee0839a43dd9 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Mon, 19 Mar 2018 14:34:14 +0000 Subject: [PATCH] Work in progress on including IP in emailed reports. --- WEB-INF/lib/ttReportHelper.class.php | 10 ++++++++++ WEB-INF/templates/footer.tpl | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/WEB-INF/lib/ttReportHelper.class.php b/WEB-INF/lib/ttReportHelper.class.php index ca7c83bd..129d975b 100644 --- a/WEB-INF/lib/ttReportHelper.class.php +++ b/WEB-INF/lib/ttReportHelper.class.php @@ -1254,6 +1254,8 @@ class ttReportHelper { $body .= ''.$i18n->getKey('label.cost').''; if ($bean->getAttribute('chpaid')) $body .= ''.$i18n->getKey('label.paid').''; + if ($bean->getAttribute('chip')) + $body .= ''.$i18n->getKey('label.ip').''; if ($bean->getAttribute('chinvoice')) $body .= ''.$i18n->getKey('label.invoice').''; $body .= ''; @@ -1296,6 +1298,7 @@ class ttReportHelper { $body .= ''; } if ($bean->getAttribute('chpaid')) $body .= ''; + if ($bean->getAttribute('chip')) $body .= ''; if ($bean->getAttribute('chinvoice')) $body .= ''; $body .= ''; $body .= ' '; @@ -1333,6 +1336,11 @@ class ttReportHelper { $body .= $record['paid'] == 1 ? $i18n->getKey('label.yes') : $i18n->getKey('label.no'); $body .= ''; } + if ($bean->getAttribute('chip')) { + $body .= ''; + $body .= $record['modified'] ? $record['modified_ip'].' '.$record['modified'] : $$record['created_ip'].' '.$record['created']; + $body .= ''; + } if ($bean->getAttribute('chinvoice')) $body .= ''.htmlspecialchars($record['invoice']).''; $body .= ''; @@ -1363,6 +1371,7 @@ class ttReportHelper { $body .= ''; } if ($bean->getAttribute('chpaid')) $body .= ''; + if ($bean->getAttribute('chip')) $body .= ''; if ($bean->getAttribute('chinvoice')) $body .= ''; $body .= ''; } @@ -1386,6 +1395,7 @@ class ttReportHelper { $body .= ''; } if ($bean->getAttribute('chpaid')) $body .= ''; + if ($bean->getAttribute('chip')) $body .= ''; if ($bean->getAttribute('chinvoice')) $body .= ''; $body .= ''; diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index d2e11736..6fa31d44 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.61.4113 | Copyright © Anuko | +  Anuko Time Tracker 1.17.61.4114 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} -- 2.20.1