Fix invoice_to for next billing period

This commit is contained in:
Deon George 2020-07-06 14:37:08 +10:00
parent 39a230f94c
commit 878277907a
No known key found for this signature in database
GPG Key ID: 7670E8DC27415254
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ class Service extends Model
{
$query = $this->hasMany(InvoiceItem::class)
->where('item_type','=',0)
->orderBy('date_orig');
->orderBy('date_start');
if ($active)
$query->where('active','=',TRUE);