X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fprocess%2Fquick-charge.cgi;h=39628cae7dd8f4a070877b5a676bc2be4b696989;hp=d1b8e1086d943e46c070f3d3a2e8b2ca18197e5b;hb=081638aa4a483577a9c5bc7ac9ea518370cf2381;hpb=2756019bdb10fe144debfc8d6436468a89954eb3 diff --git a/httemplate/edit/process/quick-charge.cgi b/httemplate/edit/process/quick-charge.cgi index d1b8e1086..39628cae7 100644 --- a/httemplate/edit/process/quick-charge.cgi +++ b/httemplate/edit/process/quick-charge.cgi @@ -1,4 +1,4 @@ -<% $cgi->redirect($redirect) %> +<% $cgi->redirect(@redirect) %> <%init> my $curuser = $FS::CurrentUser::CurrentUser; @@ -148,14 +148,27 @@ if ( $param->{'pkgnum'} =~ /^(\d+)$/ ) { #modifying an existing one-time charge } -my $redirect; +my @redirect = (); if ( $error ) { $cgi->param('error', $error ); - $redirect = $p.'quick-charge.html?'. $cgi->query_string; + @redirect = ( $p.'quick-charge.html?'. $cgi->query_string ); } elsif ( $quotation ) { - $redirect = $fsurl.'view/quotation.html?' . $quotation->quotationnum; + @redirect = ( + -uri => $fsurl.'view/quotation.html?' . $quotation->quotationnum, + -cookie => CGI::Cookie->new( -name => 'freeside_status', + -value => mt('One-time charge added to quotation'), + -expires => '+5m', + ), + ); } else { - $redirect = $fsurl.'view/cust_main.cgi?custnum=' . $cust_main->custnum . ';show=last'; + @redirect = ( + -uri => $fsurl.'view/cust_main.cgi?custnum='. $cust_main->custnum. + ';show=last', + -cookie => CGI::Cookie->new( -name => 'freeside_status', + -value => mt('One-time charge ordered'), + -expires => '+5m', + ), + ); }