[freeside-commits] branch FREESIDE_3_BRANCH updated. 2de49bc86da621c3a5733c2b89c8ed85abadcac3
Ivan
ivan at 420.am
Mon Oct 20 13:00:50 PDT 2014
The branch, FREESIDE_3_BRANCH has been updated
via 2de49bc86da621c3a5733c2b89c8ed85abadcac3 (commit)
from f6b7e98aba4ed5a264809a712a3a3c5487a53049 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 2de49bc86da621c3a5733c2b89c8ed85abadcac3
Author: Ivan Kohler <ivan at freeside.biz>
Date: Mon Oct 20 13:00:49 2014 -0700
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 d860499..7ffbb1f 100755
--- a/httemplate/edit/cust_pkg.cgi
+++ b/httemplate/edit/cust_pkg.cgi
@@ -46,17 +46,17 @@
Order new packages
<BR><BR>
-%
+
%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;
-%
-
<TABLE>
<TR STYLE="background-color: #cccccc;">
-----------------------------------------------------------------------
Summary of changes:
httemplate/edit/cust_pkg.cgi | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
More information about the freeside-commits
mailing list