use display_custnum for referring customer
[freeside.git] / httemplate / view / cust_main / packages / services.html
index 4151e06..5f458e6 100644 (file)
@@ -10,13 +10,16 @@ function clearhint_search_cust_svc(obj, str) {
 }
     </SCRIPT>
 
-%  foreach my $part_svc ( $cust_pkg->part_svc ) {
+%  foreach my $part_svc ( $cust_pkg->part_svc(
+%                           'summarize_size' => $opt{'cust_pkg-large_pkg_size'}
+%                       ) )
+%  {
 
 %    my $num_cust_svc = $cust_pkg->num_cust_svc( $part_svc->svcpart );
 
 %    if ( $opt{'cust_pkg-large_pkg_size'} > 0 and
-%         $opt{'cust_pkg-large_pkg_size'} <= $num_cust_svc ) {
-%      # summarize
+%         $opt{'cust_pkg-large_pkg_size'} <= $num_cust_svc ) { # summarize
+%
       <TR>
         <TD ALIGN="right" VALIGN="top">
 %       my $href="${p}search/cust_pkg_svc.html?svcpart=".$part_svc->svcpart.
@@ -42,8 +45,9 @@ function clearhint_search_cust_svc(obj, str) {
         </TD>
       </TR>
 %     } #$hint
-%    }
-%    else { # don't summarize
+%
+%    } else { # don't summarize
+%
 %      foreach my $cust_svc ( @{ $part_svc->cust_pkg_svc } ) {
 %        if ( $cust_pkg->getfield('cancel') > 0 ) {
       <& /elements/tr-cust_svc_cancel.html,