From: Ivan Kohler Date: Fri, 5 Oct 2012 03:25:37 +0000 (-0700) Subject: Merge branch 'master' of git.freeside.biz:/home/git/freeside X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=0af38652da3b3be7da2d35b048285ef6f2194e1a;hp=-c Merge branch 'master' of git.freeside.biz:/home/git/freeside --- 0af38652da3b3be7da2d35b048285ef6f2194e1a diff --combined httemplate/edit/process/quick-cust_pkg.cgi index 306319869,c5eee0cb8..2dadbccdc --- a/httemplate/edit/process/quick-cust_pkg.cgi +++ b/httemplate/edit/process/quick-cust_pkg.cgi @@@ -2,19 -2,24 +2,24 @@@ % $cgi->param('error', $error); <% $cgi->redirect(popurl(3). 'misc/order_pkg.html?'. $cgi->query_string ) %> %} else { - % my $frag = "cust_pkg". $cust_pkg->pkgnum; % my $show = $curuser->default_customer_view =~ /^(jumbo|packages)$/ % ? '' % : ';show=packages'; - % my $redir_url = popurl(3) - % ."view/cust_main.cgi?custnum=$custnum$show;fragment=$frag#$frag"; + % + % my $redir_url = popurl(3); + % if ( $svcpart ) { # for going straight to service provisining after ordering + % $redir_url .= 'edit/'.$part_svc->svcdb.'.cgi?'. + % 'pkgnum='.$cust_pkg->pkgnum. ";svcpart=$svcpart"; + % $redir_url .= ";qualnum=$qualnum" if $qualnum; + % } elsif ( $quotationnum ) { + % $redir_url .= "view/quotation.html?quotationnum=$quotationnum"; + % } else { + % my $custnum = $cust_main->custnum; + % my $frag = "cust_pkg". $cust_pkg->pkgnum; + % $redir_url .= + % "view/cust_main.cgi?custnum=$custnum$show;fragment=$frag#$frag"; + % } % - % # for going right to a provision service after ordering a package - % if ( $svcpart ) { - % $redir_url = popurl(3)."edit/".$part_svc->svcdb.".cgi?". - % "pkgnum=".$cust_pkg->pkgnum. ";svcpart=$svcpart"; - % $redir_url .= ";qualnum=$qualnum" if $qualnum; - % } <% header('Package ordered') %>