Add machines with day-by-day work lists for job tasks

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-26 16:43:55 +02:00
co-authored by Claude Sonnet 5.5
parent 0de0e332b2
commit aac579257a
59 changed files with 3803 additions and 1 deletions
@@ -0,0 +1,30 @@
<?php
declare(strict_types=1);
namespace App\Modules\Machines\Application\DTOs;
/**
* A row of a machine's work list: a task (with its details) or a step of
* a quick sale order line. $plannedOn is Y-m-d; a late row was planned on
* an earlier day and is still open.
*/
final readonly class QueueRow
{
public function __construct(
public int $entryId,
public int $machineId,
public string $plannedOn,
public int $position,
public bool $isLate,
public ?int $taskId,
public ?int $orderLineId,
public ?int $stepPosition,
public ?MachineTaskInfo $task = null,
) {}
public function isOrder(): bool
{
return $this->orderLineId !== null;
}
}