This commit is contained in:
Adrian Hopek
2022-04-20 10:17:58 +02:00
parent cc981b02b4
commit 4158e88634
7 changed files with 35 additions and 4 deletions

View File

@@ -35,7 +35,8 @@ class TimesheetController extends Controller
$types = VacationType::all()
->filter(
fn(VacationType $type) => $configRetriever->isAvailableFor($type, EmploymentForm::EmploymentContract),
fn(VacationType $type) => $configRetriever->isAvailableFor($type, EmploymentForm::EmploymentContract)
&& $configRetriever->isVacation($type),
);
$filename = "{$carbonMonth->translatedFormat("F Y")}.xlsx";