diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2015-07-21 15:16:12 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2015-07-21 15:16:12 -0700 |
| commit | 71d389e6554fd9994ac9c18bc59fd43449b8cca1 (patch) | |
| tree | cc53f58ce8131c3fd07b82686fb8da08a5671923 /httemplate/view/cust_bill.cgi | |
| parent | 8e64188a4f9886971da617a1bde869d5725f82c8 (diff) | |
remove invoice deletion (and ancient & unused config settings), RT#37157
Diffstat (limited to 'httemplate/view/cust_bill.cgi')
| -rwxr-xr-x | httemplate/view/cust_bill.cgi | 21 |
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 ) { - | -% } -% 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 |
