trim credit reasons to 50 chars to avoid messing up typesetting, RT#27744
authorIvan Kohler <ivan@freeside.biz>
Tue, 10 Mar 2015 18:51:14 +0000 (11:51 -0700)
committerIvan Kohler <ivan@freeside.biz>
Tue, 10 Mar 2015 18:51:14 +0000 (11:51 -0700)
FS/FS/Template_Mixin.pm
FS/FS/cust_bill.pm

index 412a5b0..17863a1 100644 (file)
@@ -1370,7 +1370,7 @@ sub print_generic {
       # credits
       my $credittotal = 0;
       foreach my $credit (
-        $self->_items_credits( 'template' => $template, 'trim_len' => 60 )
+        $self->_items_credits( 'template' => $template, 'trim_len' => 50 )
       ) {
 
         my $total;
index a65154e..5cdae66 100644 (file)
@@ -2705,7 +2705,7 @@ sub _items_previous {
 
 sub _items_credits {
   my( $self, %opt ) = @_;
-  my $trim_len = $opt{'trim_len'} || 60;
+  my $trim_len = $opt{'trim_len'} || 50;
 
   my @b;
   #credits