mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Exclude drafts from overdue invoice list
This commit is contained in:
parent
5f76ad325e
commit
a6e44fe994
@ -99,7 +99,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