X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_bill.pm;h=0f08aaa51d38000f813ee1b7900e9cc057668b50;hb=16941ee3099833522bb8b7ac3cdf88b4a5f0ad89;hp=ca81c03dcd39495f3aeb322baf2dedb387b45692;hpb=8fda124d646333848b311c99263813c7d2466592;p=freeside.git diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index ca81c03dc..0f08aaa51 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -3956,9 +3956,12 @@ sub _items_cust_bill_pkg { { push @d, map &{$escape_function}($_), $cust_pkg->h_labels_short($self->_date); - push @d, map &{$escape_function}($_), - $cust_pkg->location_label_short - if $multilocation; + if ( $multilocation ) { + my $loc = $cust_pkg->location_label; + $loc = substr($desc, 0, 50). '...' + if $format eq 'latex' && length($loc) > 50; + push @d, &{$escape_function}($loc); + } } push @d, $cust_bill_pkg->details(%details_opt) if $cust_bill_pkg->recur == 0; @@ -4013,9 +4016,12 @@ sub _items_cust_bill_pkg { #$cust_bill_pkg->edate, #$cust_bill_pkg->sdate) ; - push @d, map &{$escape_function}($_), - $cust_pkg->location_label_short - if $multilocation; + if ( $multilocation ) { + my $loc = $cust_pkg->location_label; + $loc = substr($desc, 0, 50). '...' + if $format eq 'latex' && length($loc) > 50; + push @d, &{$escape_function}($loc); + } } push @d, $cust_bill_pkg->details(%details_opt)