$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;
}
{
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;
#$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)