diff options
author | ivan <ivan> | 2002-07-22 10:18:44 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-07-22 10:18:44 +0000 |
commit | c8c220ea0d5776aaf42581a0e3e61336a8d798f3 (patch) | |
tree | 37620e52b69e50c5994bfd7b5d56898a99bef8f8 | |
parent | f22694a83b1acce62cdc10cf91884274af0e40a2 (diff) |
sort bills by date
-rw-r--r-- | FS/FS/cust_main.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 02e906aed..eb468d981 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -1809,7 +1809,8 @@ Returns all the invoices (see L<FS::cust_bill>) for this customer. 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 |