Merge branch 'v5-develop' of https://github.com/turbo124/invoiceninja into v5-develop

This commit is contained in:
David Bomba 2025-11-02 08:11:32 +11:00
commit 16fa896d78
1 changed files with 1 additions and 0 deletions

View File

@ -1292,6 +1292,7 @@ $products = str_getcsv($this->input['product_key'], ',', "'");
return $query; return $query;
case 'last7': case 'last7':
case 'last_7_days': case 'last_7_days':
case 'last7_days':
$this->start_date = now()->subDays(7)->format('Y-m-d'); $this->start_date = now()->subDays(7)->format('Y-m-d');
$this->end_date = now()->format('Y-m-d'); $this->end_date = now()->format('Y-m-d');
return $query->whereBetween($this->date_key, [now()->subDays(7), now()])->orderBy($this->date_key, 'ASC'); return $query->whereBetween($this->date_key, [now()->subDays(7), now()])->orderBy($this->date_key, 'ASC');