diff --git a/app/Utils/Traits/MakesInvoiceValues.php b/app/Utils/Traits/MakesInvoiceValues.php index 1dd38dd75ad3..d37539a5ab99 100644 --- a/app/Utils/Traits/MakesInvoiceValues.php +++ b/app/Utils/Traits/MakesInvoiceValues.php @@ -358,6 +358,24 @@ trait MakesInvoiceValues ':MONTH' => Carbon::createFromDate(now()->year, now()->month)->translatedFormat('F'), ':YEAR' => now()->year, ':QUARTER' => 'Q' . now()->quarter, + ':WEEK_BEFORE' => \sprintf( + '%s %s %s', + Carbon::now()->subDays(7)->translatedFormat($this->client->date_format()), + ctrans('texts.to'), + Carbon::now()->translatedFormat($this->client->date_format()) + ), + ':WEEK_AHEAD' => \sprintf( + '%s %s %s', + Carbon::now()->addDays(7)->translatedFormat($this->client->date_format()), + ctrans('texts.to'), + Carbon::now()->addDays(14)->translatedFormat($this->client->date_format()) + ), + ':WEEK' => \sprintf( + '%s %s %s', + Carbon::now()->translatedFormat($this->client->date_format()), + ctrans('texts.to'), + Carbon::now()->addDays(7)->translatedFormat($this->client->date_format()) + ), ], 'raw' => [ ':MONTH' => now()->month,