#39 - generate timesheet #56

Merged
Baakoma merged 9 commits from #39-generate-timesheet into main 2022-02-21 16:09:45 +01:00
Showing only changes of commit d6afa561a7 - Show all commits

View File

@@ -21,6 +21,7 @@ use Maatwebsite\Excel\Events\AfterSheet;
mtracz commented 2022-02-21 15:40:19 +01:00 (Migrated from github.com)
Review

Maybe move these hours to consts as start hour and end hour?

Maybe move these hours to consts as start hour and end hour?
mtracz commented 2022-02-21 15:40:19 +01:00 (Migrated from github.com)
Review

Maybe move these hours to consts as start hour and end hour?

Maybe move these hours to consts as start hour and end hour?
use PhpOffice\PhpSpreadsheet\Shared\Date;
use PhpOffice\PhpSpreadsheet\Style\Alignment;
use PhpOffice\PhpSpreadsheet\Style\Border;
use PhpOffice\PhpSpreadsheet\Style\Color;
mtracz commented 2022-02-21 15:40:19 +01:00 (Migrated from github.com)
Review

Maybe move these hours to consts as start hour and end hour?

Maybe move these hours to consts as start hour and end hour?
use PhpOffice\PhpSpreadsheet\Style\Fill;
use PhpOffice\PhpSpreadsheet\Style\NumberFormat;
use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
@@ -141,7 +142,9 @@ class TimesheetPerUserSheet implements WithTitle, WithHeadings, WithEvents, With
mtracz commented 2022-02-21 15:40:19 +01:00 (Migrated from github.com)
Review

Maybe move these hours to consts as start hour and end hour?

Maybe move these hours to consts as start hour and end hour?
mtracz commented 2022-02-21 15:40:19 +01:00 (Migrated from github.com)
Review

Maybe move these hours to consts as start hour and end hour?

Maybe move these hours to consts as start hour and end hour?
$sheet->getStyle("A1:{$lastColumn}{$lastRow}")
->getBorders()
->getAllBorders()
->setBorderStyle(Border::BORDER_THIN);
mtracz commented 2022-02-21 15:40:19 +01:00 (Migrated from github.com)
Review

Maybe move these hours to consts as start hour and end hour?

Maybe move these hours to consts as start hour and end hour?
->setBorderStyle(Border::BORDER_THIN)
mtracz commented 2022-02-21 15:40:19 +01:00 (Migrated from github.com)
Review

Maybe move these hours to consts as start hour and end hour?

Maybe move these hours to consts as start hour and end hour?
->getColor()
mtracz commented 2022-02-21 15:40:19 +01:00 (Migrated from github.com)
Review

Maybe move these hours to consts as start hour and end hour?

Maybe move these hours to consts as start hour and end hour?
->setRGB("B7B7B7");
mtracz commented 2022-02-21 15:40:19 +01:00 (Migrated from github.com)
Review

Maybe move these hours to consts as start hour and end hour?

Maybe move these hours to consts as start hour and end hour?
}
public static function afterSheet(AfterSheet $event): void
@@ -176,7 +179,9 @@ class TimesheetPerUserSheet implements WithTitle, WithHeadings, WithEvents, With
mtracz commented 2022-02-21 15:40:19 +01:00 (Migrated from github.com)
Review

Maybe move these hours to consts as start hour and end hour?

Maybe move these hours to consts as start hour and end hour?
mtracz commented 2022-02-21 15:40:19 +01:00 (Migrated from github.com)
Review

Maybe move these hours to consts as start hour and end hour?

Maybe move these hours to consts as start hour and end hour?
$sheet->getDelegate()->getStyle("A{$lastRow}:E{$lastRow}")
->getBorders()
->getAllBorders()
->setBorderStyle(Border::BORDER_THIN);
mtracz commented 2022-02-21 15:40:19 +01:00 (Migrated from github.com)
Review

Maybe move these hours to consts as start hour and end hour?

Maybe move these hours to consts as start hour and end hour?
->setBorderStyle(Border::BORDER_THIN)
mtracz commented 2022-02-21 15:40:19 +01:00 (Migrated from github.com)
Review

Maybe move these hours to consts as start hour and end hour?

Maybe move these hours to consts as start hour and end hour?
->getColor()
mtracz commented 2022-02-21 15:40:19 +01:00 (Migrated from github.com)
Review

Maybe move these hours to consts as start hour and end hour?

Maybe move these hours to consts as start hour and end hour?
->setRGB("B7B7B7");
mtracz commented 2022-02-21 15:40:19 +01:00 (Migrated from github.com)
Review

Maybe move these hours to consts as start hour and end hour?

Maybe move these hours to consts as start hour and end hour?
}
protected function getVacationsForPeriod(User $user, CarbonPeriod $period): Collection
mtracz commented 2022-02-21 15:40:19 +01:00 (Migrated from github.com)
Review

Maybe move these hours to consts as start hour and end hour?

Maybe move these hours to consts as start hour and end hour?
mtracz commented 2022-02-21 15:40:19 +01:00 (Migrated from github.com)
Review

Maybe move these hours to consts as start hour and end hour?

Maybe move these hours to consts as start hour and end hour?