From: ivan Date: Mon, 22 Jul 2002 10:18:44 +0000 (+0000) Subject: sort bills by date X-Git-Tag: freeside_1_4_0~5 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=c8c220ea0d5776aaf42581a0e3e61336a8d798f3 sort bills by date --- 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) 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