X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=invoice_view.php;h=605a5302027b0e85501ba651969d84ff3b70561f;hb=f504e16303445771d7f069ed49a5a29bbd7ef737;hp=772500ef51191f0bbad9377dc6fc0c86946cf951;hpb=3c60698710dfd998fd1488c674b944f5df9b0dce;p=timetracker.git 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();