summaryrefslogtreecommitdiff
path: root/FS/FS/cust_bill.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-03-15 18:45:05 -0700
committerIvan Kohler <ivan@freeside.biz>2015-03-15 18:45:05 -0700
commit20b0d6db0a6105fcf43adb3bd8d27a386c269654 (patch)
treef8ed62982f803430b504b2d36e630c0b317fcfcc /FS/FS/cust_bill.pm
parent8c5702cc86a16f25a9ceb9b822b2aac6a324afaa (diff)
trim invoice line items to 40 chars to avoid messing up typesetting, even with quantities on, RT#27744
Diffstat (limited to 'FS/FS/cust_bill.pm')
-rw-r--r--FS/FS/cust_bill.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index 5cdae66..137985a 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -2165,7 +2165,7 @@ sub _items_extra_usage_sections {
my %classnums = ();
my %lines = ();
- my $maxlength = $conf->config('cust_bill-latex_lineitem_maxlength') || 50;
+ my $maxlength = $conf->config('cust_bill-latex_lineitem_maxlength') || 40;
my %usage_class = map { $_->classnum => $_ } qsearch( 'usage_class', {} );
foreach my $cust_bill_pkg ( $self->cust_bill_pkg ) {
@@ -2406,7 +2406,7 @@ sub _items_svc_phone_sections {
my %classnums = ();
my %lines = ();
- my $maxlength = $conf->config('cust_bill-latex_lineitem_maxlength') || 50;
+ my $maxlength = $conf->config('cust_bill-latex_lineitem_maxlength') || 40;
my %usage_class = map { $_->classnum => $_ } qsearch( 'usage_class', {} );
$usage_class{''} ||= new FS::usage_class { 'classname' => '', 'weight' => 0 };
@@ -2705,7 +2705,7 @@ sub _items_previous {
sub _items_credits {
my( $self, %opt ) = @_;
- my $trim_len = $opt{'trim_len'} || 50;
+ my $trim_len = $opt{'trim_len'} || 40;
my @b;
#credits