From c82e10e2a7af8039962b3f2bd8df4050977c279c Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Wed, 4 Nov 2015 15:06:58 -0800 Subject: separate reason classes for voiding different transaction types, #38532 --- httemplate/misc/void-cust_bill.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httemplate/misc/void-cust_bill.cgi') diff --git a/httemplate/misc/void-cust_bill.cgi b/httemplate/misc/void-cust_bill.cgi index 213cf9566..e4e4705d7 100755 --- a/httemplate/misc/void-cust_bill.cgi +++ b/httemplate/misc/void-cust_bill.cgi @@ -14,7 +14,7 @@ <% ntable("#cccccc", 2) %> <& /elements/tr-select-reason.html, 'field' => 'reasonnum', - 'reason_class' => 'X', + 'reason_class' => 'I', 'cgi' => $cgi &> -- cgit v1.2.1 From 4f223dd481c3a9c7816bed964ff45171f9b5d014 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Wed, 4 Nov 2015 15:12:49 -0800 Subject: rename .cgi back to .html, #38532 --- httemplate/misc/void-cust_bill.cgi | 46 -------------------------------------- 1 file changed, 46 deletions(-) delete mode 100755 httemplate/misc/void-cust_bill.cgi (limited to 'httemplate/misc/void-cust_bill.cgi') diff --git a/httemplate/misc/void-cust_bill.cgi b/httemplate/misc/void-cust_bill.cgi deleted file mode 100755 index e4e4705d7..000000000 --- a/httemplate/misc/void-cust_bill.cgi +++ /dev/null @@ -1,46 +0,0 @@ -<& /elements/header-popup.html, mt('Void invoice') &> - -<% include('/elements/error.html') %> - -<% emt('Are you sure you want to void this invoice?') %> -

- -<% emt("Invoice #[_1] ([_2])",$cust_bill->display_invnum, $money_char. $cust_bill->owed) %> -

- -
- - -<% ntable("#cccccc", 2) %> -<& /elements/tr-select-reason.html, - 'field' => 'reasonnum', - 'reason_class' => 'I', - 'cgi' => $cgi -&> - - - -
-
-   \ - -
- -
- - -<%init> - -die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Void invoices'); - -my $conf = new FS::Conf; -my $money_char = $conf->config('money_char') || '$'; - -#untaint invnum -$cgi->param('invnum') =~ /^(\d+)$/ || die "Illegal invnum"; -my $invnum = $1; - -my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum}); - - -- cgit v1.2.1