Include partial in open invoices

This commit is contained in:
Hillel Coren 2017-07-14 08:48:00 +03:00
parent 740ee5d36b
commit 60a04f0238

View File

@ -983,7 +983,7 @@ class InvoiceRepository extends BaseRepository
->whereDeletedAt(null) ->whereDeletedAt(null)
->where('balance', '>', 0); ->where('balance', '>', 0);
return $query->where('invoice_status_id', '<', 5) return $query->where('invoice_status_id', '<', INVOICE_STATUS_PAID)
->select(['public_id', 'invoice_number']) ->select(['public_id', 'invoice_number'])
->get(); ->get();
} }