[freeside-commits] freeside/FS/FS cust_bill.pm, 1.163.2.41, 1.163.2.42
Ivan,,,
ivan at wavetail.420.am
Mon Dec 22 16:52:05 PST 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv10267
Modified Files:
Tag: FREESIDE_1_7_BRANCH
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.163.2.41
retrieving revision 1.163.2.42
diff -u -d -r1.163.2.41 -r1.163.2.42
--- cust_bill.pm 22 Dec 2008 00:51:54 -0000 1.163.2.41
+++ cust_bill.pm 23 Dec 2008 00:52:03 -0000 1.163.2.42
@@ -1930,7 +1930,7 @@
!~ /^%%EndDetail\s*$/ ) {
push @line_item, $line_item_line;
}
- foreach my $line_item ( $self->_items ) {
+ foreach my $line_item ( $self->_items ) { #( 'format'=>'latex' ) ) {
#foreach my $line_item ( $self->_items_pkg ) {
$invoice_data{'ref'} = $line_item->{'pkgnum'};
$invoice_data{'description'} =
@@ -2548,6 +2548,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