[freeside-commits] freeside/FS/FS cust_bill.pm,1.230,1.231
Ivan,,,
ivan at wavetail.420.am
Mon Dec 22 16:32:32 PST 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv9881
Modified Files:
cust_bill.pm
Log Message:
truncate package descriptions over 50 chars to avoid pushing the total column out to the right, RT#4449
Index: cust_bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill.pm,v
retrieving revision 1.230
retrieving revision 1.231
diff -u -d -r1.230 -r1.231
--- cust_bill.pm 20 Nov 2008 00:42:09 -0000 1.230
+++ cust_bill.pm 23 Dec 2008 00:32:29 -0000 1.231
@@ -2712,11 +2712,8 @@
sub _items_pkg {
my $self = shift;
- my %options = @_;
- my $section = $options{'section'};
- my $desc = $section->{'description'};
my @cust_bill_pkg = grep { $_->pkgnum } $self->cust_bill_pkg;
- $self->_items_cust_bill_pkg(\@cust_bill_pkg, %options);
+ $self->_items_cust_bill_pkg(\@cust_bill_pkg, @_);
}
sub _taxsort {
@@ -2761,6 +2758,8 @@
my $cust_pkg = $cust_bill_pkg->cust_pkg;
my $desc = $cust_bill_pkg->desc;
+ $desc = substr($desc, 0, 50). '...';
+ if $format eq 'latex' && length($desc) > 50;
my %details_opt = ( 'format' => $format,
'escape_function' => $escape_function,
More information about the freeside-commits
mailing list