From 1de841aed4ac77807744ae6cc8f639b9594cae54 Mon Sep 17 00:00:00 2001 From: jeff Date: Thu, 24 Jul 2008 16:40:31 +0000 Subject: [PATCH] ensure invoice line items are delivered in line number order --- FS/FS/cust_bill.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.11.0