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

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);