Exclude drafts from overdue invoice list
This commit is contained in:
parent
5f76ad325e
commit
a6e44fe994
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue