From dba9cc11f7ad2337506e40ed2aa6bc9e890cc977 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 21 Jul 2015 15:16:12 -0700 Subject: remove invoice deletion (and ancient & unused config settings), RT#37157 --- httemplate/view/cust_bill.cgi | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'httemplate/view/cust_bill.cgi') 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) { } -% 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 ) { - \ - <% emt('Delete this invoice') |h %> -% } -% if ( $can_void or $can_delete ) { -

-% } +

% } % if ( $cust_bill->owed > 0 -- cgit v1.2.1