summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_bill.cgi
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-07-26 15:41:26 -0700
committerIvan Kohler <ivan@freeside.biz>2015-07-26 15:41:26 -0700
commit9aee669886202be7035e6c6049fc71bc99dd3013 (patch)
tree2fd5bf6de74f3d99270587ffb1833e4188a6373d /httemplate/view/cust_bill.cgi
parentac20214d38d9af00430423f147b5a0e50751b050 (diff)
parent1add633372bdca3cc7163c2ce48363fed3984437 (diff)
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/view/cust_bill.cgi')
-rwxr-xr-xhttemplate/view/cust_bill.cgi21
1 files changed, 2 insertions, 19 deletions
diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi
index f1bcf4d52..2ff3ca883 100755
--- a/httemplate/view/cust_bill.cgi
+++ b/httemplate/view/cust_bill.cgi
@@ -9,30 +9,13 @@ function areyousure(href, message) {
}
</SCRIPT>
-% if ( !$cust_bill->closed ) { # otherwise allow no changes
-% my $can_delete = $conf->exists('deleteinvoices')
-% && $curuser->access_right('Delete invoices');
-% my $can_void = $curuser->access_right('Void invoices');
-% if ( $can_void ) {
+% if ( !$cust_bill->closed && $curuser->access_right('Void invoices') ) {
<& /elements/popup_link.html,
'label' => emt('Void this invoice'),
'actionlabel' => emt('Void this invoice'),
'action' => $p.'misc/void-cust_bill.html?invnum='.$invnum,
&>
-% }
-% if ( $can_void and $can_delete ) {
- &nbsp;|&nbsp;
-% }
-% if ( $can_delete ) {
- <A href="" onclick="areyousure(\
- '<%$p%>misc/delete-cust_bill.html?<% $invnum %>',\
- <% mt('Are you sure you want to delete this invoice?') |js_string %>)"\
- TITLE = "<% mt('Delete this invoice from the database completely') |h %>">\
- <% emt('Delete this invoice') |h %></A>
-% }
-% if ( $can_void or $can_delete ) {
- <BR><BR>
-% }
+ <BR><BR>
% }
% if ( $cust_bill->owed > 0