X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fprocess%2Fvoid-cust_bill.html;h=c0f432b7091536978b8206f8805953dc2b9b1b24;hb=5da68ff1a7c638e30cbafbc9b0749f1e82b333df;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..c0f432b70 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.cgi?". $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')) );