X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fprocess%2Fvoid-cust_bill.html;h=7773b0ba98e6279856feaf258cd784b42afb0a6a;hb=d5c3ae3442a2ced726c83c4d78fde2bae3ba1691;hp=f2930ec01448080ea0ce7223e3eedaef3993533d;hpb=f24c4bebce257bfcc61ba07fd3d16c5c0d730071;p=freeside.git diff --git a/httemplate/misc/process/void-cust_bill.html b/httemplate/misc/process/void-cust_bill.html index f2930ec01..7773b0ba9 100755 --- a/httemplate/misc/process/void-cust_bill.html +++ b/httemplate/misc/process/void-cust_bill.html @@ -1,8 +1,12 @@ %if ( $error ) { % $cgi->param('error', $error); -<% $cgi->redirect(popurl(1). "void-cust_bill.html?". $cgi->query_string ) %> +<% $cgi->redirect(popurl(2). "void-cust_bill.html?". $cgi->query_string ) %> %} else { -<% $cgi->redirect(popurl(3). "view/cust_main.cgi?". $custnum) %> +<& /elements/header-popup.html, 'Invoice voided' &> + + %} <%init> @@ -17,6 +21,6 @@ my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum}); my $custnum = $cust_bill->custnum; -my $error = $cust_bill->void( $cgi->param('reason') ); +my $error = $cust_bill->void( scalar($cgi->param('reason')) );