From: Ivan Kohler Date: Mon, 20 Oct 2014 20:00:49 +0000 (-0700) Subject: respect agent-specific packages in bulk order/cancel, RT#31665 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=2de49bc86da621c3a5733c2b89c8ed85abadcac3 respect agent-specific packages in bulk order/cancel, RT#31665 --- diff --git a/httemplate/edit/cust_pkg.cgi b/httemplate/edit/cust_pkg.cgi index d86049940..7ffbb1fc0 100755 --- a/httemplate/edit/cust_pkg.cgi +++ b/httemplate/edit/cust_pkg.cgi @@ -46,17 +46,17 @@ Order new packages

-% + %my $cust_main = qsearchs('cust_main',{'custnum'=>$custnum}); %my $agent = qsearchs('agent',{'agentnum'=> $cust_main->agentnum }); % -%my %agent_pkgs = map { ( $_->pkgpart , $all_pkg{$_->pkgpart} ) } -% qsearch('type_pkgs',{'typenum'=> $agent->typenum }); +%my %agent_pkgs = map { ( $_->pkgpart => $all_pkg{$_->pkgpart} ) } +% ( qsearch('type_pkgs',{ typenum => $agent->typenum }), +% qsearch('part_pkg', { agentnum => $cust_main->agentnum }), +% ); % %my $count = 0; %my $pkgparts = 0; -% -