projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f6b7e98
)
respect agent-specific packages in bulk order/cancel, RT#31665
author
Ivan Kohler
<ivan@freeside.biz>
Mon, 20 Oct 2014 20:00:49 +0000
(13:00 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Mon, 20 Oct 2014 20:00:49 +0000
(13:00 -0700)
httemplate/edit/cust_pkg.cgi
patch
|
blob
|
history
diff --git
a/httemplate/edit/cust_pkg.cgi
b/httemplate/edit/cust_pkg.cgi
index
d860499
..
7ffbb1f
100755
(executable)
--- a/
httemplate/edit/cust_pkg.cgi
+++ b/
httemplate/edit/cust_pkg.cgi
@@
-46,17
+46,17
@@
Order new packages
<BR><BR>
Order new packages
<BR><BR>
-%
+
%my $cust_main = qsearchs('cust_main',{'custnum'=>$custnum});
%my $agent = qsearchs('agent',{'agentnum'=> $cust_main->agentnum });
%
%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;
%
%my $count = 0;
%my $pkgparts = 0;
-%
-
<TABLE>
<TR STYLE="background-color: #cccccc;">
<TABLE>
<TR STYLE="background-color: #cccccc;">