]> wagnertech.de Git - timetracker.git/blobdiff - invoice_view.php
posaune
[timetracker.git] / invoice_view.php
index 772500ef51191f0bbad9377dc6fc0c86946cf951..605a5302027b0e85501ba651969d84ff3b70561f 100644 (file)
@@ -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();