summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-03-10 11:51:14 -0700
committerIvan Kohler <ivan@freeside.biz>2015-03-10 11:51:14 -0700
commit9f5cb17360a9ff003e545c463b5da066d5cdfa6d (patch)
tree305584afd9de6422a5347a74e6ebdff8fa4024fa
parent1a6d6a44c8752057c638991c3576d7a1ea1e87a0 (diff)
trim credit reasons to 50 chars to avoid messing up typesetting, RT#27744
-rw-r--r--FS/FS/Template_Mixin.pm2
-rw-r--r--FS/FS/cust_bill.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm
index 412a5b036..17863a115 100644
--- a/FS/FS/Template_Mixin.pm
+++ b/FS/FS/Template_Mixin.pm
@@ -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;
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index a65154ec4..5cdae6615 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -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