1
0
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:
David Bomba 2023-07-31 11:22:21 +10:00
parent e13d867c7f
commit 924a45db7c

View File

@ -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);