From: jeff Date: Thu, 24 Jul 2008 16:40:31 +0000 (+0000) Subject: ensure invoice line items are delivered in line number order X-Git-Tag: root_of_webpay_support~461 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=1de841aed4ac77807744ae6cc8f639b9594cae54 ensure invoice line items are delivered in line number order --- 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) 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