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();
}
$tax += round($item['cost'] * $tax_percent / 100, 2);
}
}
-$total = $subtotal + $tax;
+$total = $subtotal + $tax;
$currency = $user->getCurrency();
$decimalMark = $user->getDecimalMark();