mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 02:24:29 -04:00
Exclude drafts from overdue invoice list
This commit is contained in:
parent
faec63d116
commit
d3f2261eb4
@ -97,7 +97,8 @@ class InvoiceRepository extends BaseRepository
|
||||
if (in_array(INVOICE_STATUS_OVERDUE, $statuses)) {
|
||||
$query->orWhere(function ($query) use ($statuses) {
|
||||
$query->where('invoices.balance', '>', 0)
|
||||
->where('invoices.due_date', '<', date('Y-m-d'));
|
||||
->where('invoices.due_date', '<', date('Y-m-d'))
|
||||
->where('invoices.is_public', '=', true);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user