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
@@ -23,6 +23,16 @@ interface TaskQueries
*/
public function pinnedTaskIds(int $jobId): array;
/**
* Tasks scheduled for the user between the dates (Y-m-d): booked on
* their task calendar row, or open tasks they are the assignee or a
* member of whose planned period overlaps the dates or that have no
* planned period at all (so unscheduled own work is never hidden).
*
* @return list<int>
*/
public function scheduledTaskIdsFor(int $userId, string $from, string $to): array;
/**
* Null when the task does not exist or belongs to another job.
*/
@@ -8,8 +8,9 @@ use App\Modules\Jobs\Domain\Enums\JobStatus;
use App\Modules\Jobs\Domain\Enums\TaskStatus;
/**
* A task as time is recorded on it: which job and work type it belongs to,
* and whether the job is locked for time entries.
* A task as time is recorded on it: which job, customer and work type it
* belongs to, the job's payment basis (a PaymentBasis value) and whether
* the job is locked for time entries.
*/
final readonly class BookableTask
{
@@ -23,6 +24,10 @@ final readonly class BookableTask
public string $workTypeName,
public JobStatus $jobStatus,
public TaskStatus $taskStatus,
public int $customerId = 0,
public string $customerName = '',
public ?string $customerHeaderColor = null,
public ?string $paymentBasis = null,
) {}
public function isLocked(): bool