projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Conditionally showing Work plugin depending on WORK_DEBUG constant.
[timetracker.git]
/
invoice_view.php
diff --git
a/invoice_view.php
b/invoice_view.php
index
772500e
..
605a530
100644
(file)
--- a/
invoice_view.php
+++ b/
invoice_view.php
@@
-33,7
+33,7
@@
import('ttClientHelper');
import('form.Form');
// Access checks.
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();
}
header('Location: access_denied.php');
exit();
}
@@
-69,7
+69,7
@@
if ($tax_percent > 0) {
$tax += round($item['cost'] * $tax_percent / 100, 2);
}
}
$tax += round($item['cost'] * $tax_percent / 100, 2);
}
}
-$total = $subtotal + $tax;
+$total = $subtotal + $tax;
$currency = $user->getCurrency();
$decimalMark = $user->getDecimalMark();
$currency = $user->getCurrency();
$decimalMark = $user->getDecimalMark();