diff options
author | jeff <jeff> | 2008-07-24 16:40:31 +0000 |
---|---|---|
committer | jeff <jeff> | 2008-07-24 16:40:31 +0000 |
commit | 1de841aed4ac77807744ae6cc8f639b9594cae54 (patch) | |
tree | 181e41dc4cba4e192073c76e11e06968ad0b6ee2 | |
parent | 6001af127d10766e3613c7f35b373dca9ce3f062 (diff) |
ensure invoice line items are delivered in line number order
-rw-r--r-- | FS/FS/cust_bill.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 8cc39ad50..52692174e 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -226,7 +226,12 @@ Returns the line items (see L<FS::cust_bill_pkg>) for this invoice. sub cust_bill_pkg { my $self = shift; - qsearch( 'cust_bill_pkg', { 'invnum' => $self->invnum } ); + qsearch( + { 'table' => 'cust_bill_pkg', + 'hashref' => { 'invnum' => $self->invnum }, + 'order_by' => 'ORDER BY billpkgnum', + } + ); } =item cust_pkg |