X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_bill.pm;h=85628fbf5043357186791e6cba88a2de8185fe99;hb=611624bc08f525d19e1bd548a7d005aa73a53145;hp=ca81c03dcd39495f3aeb322baf2dedb387b45692;hpb=8fda124d646333848b311c99263813c7d2466592;p=freeside.git diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index ca81c03dc..85628fbf5 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -2630,7 +2630,9 @@ sub print_generic { $invoice_data{current_less_finance} = sprintf('%.2f', $self->charged - $invoice_data{finance_amount} ); - if ( $multisection && !$conf->exists('disable_previous_balance') ) { + if ( $multisection && !$conf->exists('disable_previous_balance') + || $conf->exists('previous_balance-summary_only') ) + { unshift @sections, $previous_section if $pr_total; } @@ -3956,9 +3958,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 +4018,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)