From: mark Date: Sun, 19 Jun 2011 05:05:14 +0000 (+0000) Subject: fix large package display with multiple svcparts, #9821 X-Git-Tag: freeside_2_1_3~120 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=e9c099ad657b05eff3e3f3c7f18b8dc8abcbe98e;p=freeside.git fix large package display with multiple svcparts, #9821 --- diff --git a/httemplate/view/cust_main/packages/services.html b/httemplate/view/cust_main/packages/services.html index a784e496d..a0ba3d9b2 100644 --- a/httemplate/view/cust_main/packages/services.html +++ b/httemplate/view/cust_main/packages/services.html @@ -13,18 +13,25 @@ function clearhint_search_cust_svc(obj, str) { % #foreach my $svcpart (sort {$a->{svcpart} <=> $b->{svcpart}} @{$pkg->{svcparts}}) { % foreach my $part_svc ( $cust_pkg->part_svc ) { +% 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'} <= $cust_pkg->num_svcs ) { +% $opt{'cust_pkg-large_pkg_size'} <= $num_cust_svc ) { % # summarize - + % my $href="${p}search/cust_pkg_svc.html?svcpart=".$part_svc->svcpart. % ";pkgnum=".$cust_pkg->pkgnum; - <% $part_svc->svc %>  - (view all <% $cust_pkg->num_svcs %>) + <% $part_svc->svc %> + + (view all <% $num_cust_svc %>) + + % my $hint = $hints{$part_svc->svcdb}; % if ( $hint ) { -
+ + +
@@ -32,9 +39,9 @@ function clearhint_search_cust_svc(obj, str) {
-% } #$hint +% } #$hint % } % else { % foreach my $cust_svc ( @{ $part_svc->cust_pkg_svc } ) {