From 463d0546afa85b078a05b5f05ecb3d26532cf398 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 9 Mar 2015 14:01:48 +0200 Subject: [PATCH] =?UTF-8?q?Add=20=E2=80=9Corder=20by=E2=80=9D=20for=20invo?= =?UTF-8?q?ice=20items?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/Invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/Invoice.php b/app/models/Invoice.php index 0d7687d4a8fe..09e1f887d34d 100755 --- a/app/models/Invoice.php +++ b/app/models/Invoice.php @@ -19,7 +19,7 @@ class Invoice extends EntityModel public function invoice_items() { - return $this->hasMany('InvoiceItem'); + return $this->hasMany('InvoiceItem')->orderBy('id'); } public function invoice_status()