mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Additional query filters for invoices
This commit is contained in:
parent
e13d867c7f
commit
924a45db7c
@ -196,9 +196,9 @@ class InvoiceFilters extends QueryFilters
|
||||
}
|
||||
|
||||
if (is_numeric($date)) {
|
||||
$created_at = Carbon::createFromTimestamp((int)$date);
|
||||
$date = Carbon::createFromTimestamp((int)$date);
|
||||
} else {
|
||||
$created_at = Carbon::parse($date);
|
||||
$date = Carbon::parse($date);
|
||||
}
|
||||
|
||||
return $this->builder->where('date', '>=', $date);
|
||||
@ -216,9 +216,9 @@ class InvoiceFilters extends QueryFilters
|
||||
}
|
||||
|
||||
if (is_numeric($date)) {
|
||||
$created_at = Carbon::createFromTimestamp((int)$date);
|
||||
$date = Carbon::createFromTimestamp((int)$date);
|
||||
} else {
|
||||
$created_at = Carbon::parse($date);
|
||||
$date = Carbon::parse($date);
|
||||
}
|
||||
|
||||
return $this->builder->where('due_date', '>=', $date);
|
||||
|
Loading…
Reference in New Issue
Block a user