summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2010-10-31 21:48:57 +0000
committerivan <ivan>2010-10-31 21:48:57 +0000
commit387c96b0d8f224f3ade27bed9348f37b432bbb8a (patch)
tree7951083f1b41ebeeb60c4c97d2e2cb7ccaa8ebb0
parent7726d9797f078c5de3358a78018dca3e4ec5e966 (diff)
fix long package locations showing up as line item on typeset invoices, RT#10093
-rw-r--r--FS/FS/cust_bill.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index 0cf052682..a7eb9f64a 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -4098,7 +4098,7 @@ sub _items_cust_bill_pkg {
$cust_pkg->h_labels_short($self->_date);
if ( $multilocation ) {
my $loc = $cust_pkg->location_label;
- $loc = substr($desc, 0, 50). '...'
+ $loc = substr($loc, 0, 50). '...'
if $format eq 'latex' && length($loc) > 50;
push @d, &{$escape_function}($loc);
}
@@ -4158,7 +4158,7 @@ sub _items_cust_bill_pkg {
;
if ( $multilocation ) {
my $loc = $cust_pkg->location_label;
- $loc = substr($desc, 0, 50). '...'
+ $loc = substr($loc, 0, 50). '...'
if $format eq 'latex' && length($loc) > 50;
push @d, &{$escape_function}($loc);
}