X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages.html;h=33ffecca4a1a9ba1239992548dd6394501cecc3f;hp=9add4b2ad29f6e7f6236a10b991cfcb87e0f1d07;hb=a80456f3f7f775cc50d343a7bcaef69e83f96c42;hpb=ae817d8bbd220b645f41cb2d020ba8b6b739765b diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html index 9add4b2ad..33ffecca4 100755 --- a/httemplate/view/cust_main/packages.html +++ b/httemplate/view/cust_main/packages.html @@ -302,8 +302,8 @@ if ( $cgi->param('locationnum') =~ /^(\d+)$/ ) { my $total_pkgs = $cust_main->all_pkgs; -my $num_method = $hide_cancelled ? 'ncancelled_pkgs' : 'all_pkgs'; -my $num_pkgs = $cust_main->$num_method({ +my $method = $hide_cancelled ? 'ncancelled_pkgs' : 'all_pkgs'; +my $num_pkgs = $cust_main->$method({ 'addl_from' => $addl_from, 'extra_sql' => $extra_sql, }); @@ -311,7 +311,7 @@ my $num_pkgs = $cust_main->$num_method({ my $maxrecords = 10; my $offset = $cgi->param('offset') =~ /^(\d+)$/ ? $1 : 0; -my @packages = $cust_main->all_pkgs( { +my @packages = $cust_main->$method( { 'select' => "$cust_pkg_fields, $part_pkg_fields, $num_svcs", 'addl_from' => $addl_from. " LEFT JOIN part_pkg_option AS setup_option