X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/3c60698710dfd998fd1488c674b944f5df9b0dce..764eef2d0dd9c6561f88579dbb4e6323d1702d14:/invoice_view.php diff --git a/invoice_view.php b/invoice_view.php index 772500ef..605a5302 100644 --- a/invoice_view.php +++ b/invoice_view.php @@ -33,7 +33,7 @@ import('ttClientHelper'); import('form.Form'); // Access checks. -if (!(ttAccessAllowed('manage_invoices') || ttAccessAllowed('view_own_invoices'))) { +if (!(ttAccessAllowed('manage_invoices') || ttAccessAllowed('view_client_invoices'))) { header('Location: access_denied.php'); exit(); } @@ -69,7 +69,7 @@ if ($tax_percent > 0) { $tax += round($item['cost'] * $tax_percent / 100, 2); } } -$total = $subtotal + $tax; +$total = $subtotal + $tax; $currency = $user->getCurrency(); $decimalMark = $user->getDecimalMark();