projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes
[freeside.git]
/
FS
/
FS
/
cust_bill.pm
diff --git
a/FS/FS/cust_bill.pm
b/FS/FS/cust_bill.pm
index
2ca4b52
..
1a2ecaf
100644
(file)
--- a/
FS/FS/cust_bill.pm
+++ b/
FS/FS/cust_bill.pm
@@
-251,7
+251,7
@@
Returns all payment applications (see L<FS::cust_bill_pay>) for this invoice.
sub cust_bill_pay {
my $self = shift;
sub cust_bill_pay {
my $self = shift;
- sort { $a->_date <=> $b->date }
+ sort { $a->_date <=> $b->
_
date }
qsearch( 'cust_bill_pay', { 'invnum' => $self->invnum } );
}
qsearch( 'cust_bill_pay', { 'invnum' => $self->invnum } );
}
@@
-389,8
+389,12
@@
sub print_text {
#something more elaborate if $_->amount ne $_->cust_credit->credited ?
#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,[
push @buf,[
- "Credit #". $_->crednum. " (". time2str("%x",$_->cust_credit->_date) .")",
+ "Credit #". $_->crednum. " (". time2str("%x",$_->cust_credit->_date) .")".
+ $reason,
$money_char. sprintf("%10.2f",$_->amount)
];
}
$money_char. sprintf("%10.2f",$_->amount)
];
}
@@
-408,7
+412,7
@@
sub print_text {
push @buf,[
"Payment received ". time2str("%x",$_->cust_pay->_date ),
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
=head1 VERSION
-$Id: cust_bill.pm,v 1.1
0 2001-09-02 01:27:10
ivan Exp $
+$Id: cust_bill.pm,v 1.1
3 2001-12-17 23:59:56
ivan Exp $
=head1 BUGS
=head1 BUGS