X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_bill.pm;h=b65df89c477b235fa199576f4cc14432bd8ba08d;hb=fcf83b9d956af1049af0d13812cc6756c78308b5;hp=2ca4b529a968b728e63388929dbc4133acc2a16b;hpb=51e148d543a59a3cdec24bfb5ffb839ee7b4ac72;p=freeside.git diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 2ca4b529a..b65df89c4 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -389,8 +389,12 @@ sub print_text { #something more elaborate if $_->amount ne $_->cust_credit->credited ? + my $reason = substr($_->cust_credit->reason,0,32); + $reason .= '...' if length($reason) < length($_->cust_credit->reason); + $reason = " ($reason) " if $reason; push @buf,[ - "Credit #". $_->crednum. " (". time2str("%x",$_->cust_credit->_date) .")", + "Credit #". $_->crednum. " (". time2str("%x",$_->cust_credit->_date) .")". + $reason, $money_char. sprintf("%10.2f",$_->amount) ]; } @@ -408,7 +412,7 @@ sub print_text { push @buf,[ "Payment received ". time2str("%x",$_->cust_pay->_date ), - $money_char. sprintf("%10.2f",$_->paid ) + $money_char. sprintf("%10.2f",$_->amount ) ]; } @@ -489,7 +493,7 @@ sub print_text { =head1 VERSION -$Id: cust_bill.pm,v 1.10 2001-09-02 01:27:10 ivan Exp $ +$Id: cust_bill.pm,v 1.12 2001-10-15 12:16:41 ivan Exp $ =head1 BUGS