X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fcust-part_pkg.cgi;h=dcd033ff24a75f769cce6f50c7ea1c7346f1e77f;hb=8585b98f48712b459ac15619b452c682cfcceac1;hp=a249f033f8d8bfe630a705aff5845e23b8712b1d;hpb=e3c3d86b7091d806af42e40475a28ea8afb5865c;p=freeside.git diff --git a/httemplate/misc/cust-part_pkg.cgi b/httemplate/misc/cust-part_pkg.cgi index a249f033f..dcd033ff2 100644 --- a/httemplate/misc/cust-part_pkg.cgi +++ b/httemplate/misc/cust-part_pkg.cgi @@ -20,10 +20,17 @@ my @part_pkg = qsearch({ 'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql( 'null'=>1 ). ' AND '. FS::part_pkg->agent_pkgs_sql( $cust_main->agent ), + 'order_by' => 'ORDER BY pkg', }); -my @return = map { $_->pkgpart => $_->pkg_comment } - sort { $a->pkg_comment cmp $b->pkg_comment } - @part_pkg; +my @return = map { warn $_->can_start_date; + ( $_->pkgpart, + $_->pkg_comment, + $_->can_discount, + $_->can_start_date, + ); + } + #sort { $a->pkg_comment cmp $b->pkg_comment } + @part_pkg;