Kanban / timesheet update

This commit is contained in:
2026-11-30 06:56:14 +02:00
parent 6332ff0fa9
commit a4dbe8ce09
46 changed files with 8091 additions and 331 deletions
@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace App\Modules\TimeTracking\Application\DTOs;
/**
* A customer on the time sheet (level 1), in its own colour, with its jobs.
*/
final readonly class TimesheetCustomerGroup
{
/**
* @param list<TimesheetJobGroup> $jobs
*/
public function __construct(
public int $customerId,
public string $name,
public ?string $headerColor,
public array $jobs,
) {}
public function taskCount(): int
{
return array_sum(array_map(fn (TimesheetJobGroup $job): int => count($job->rows), $this->jobs));
}
}