=cut
sub charge {
- my ( $self, $amount ) = @_;
+ my ( $self, $amount ) = ( shift, shift );
my $pkg = @_ ? shift : 'One-time charge';
my $comment = @_ ? shift : '$'. sprintf("%.2f",$amount);
my $taxclass = @_ ? shift : '';
sub cust_bill {
my $self = shift;
- qsearch('cust_bill', { 'custnum' => $self->custnum, } )
+ sort { $a->_date <=> $b->_date }
+ qsearch('cust_bill', { 'custnum' => $self->custnum, } )
}
=item open_cust_bill