Record used material on tasks and suggest workflow steps' default materials

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-26 16:28:16 +02:00
co-authored by Claude Sonnet 5.5
parent 30132deb0e
commit bca1eed166
41 changed files with 1521 additions and 19 deletions
@@ -0,0 +1,22 @@
<?php
declare(strict_types=1);
namespace App\Modules\Jobs\Domain\Events;
/**
* A task was made of a workflow step with default materials (spec 19.4):
* the stock items and quantities (in thousandths) suggested to be recorded
* as used on the task once its assignee confirms them.
*/
final readonly class TaskMaterialsSuggested
{
/**
* @param list<array{stockItemId: int, quantityMilli: int}> $materials
*/
public function __construct(
public int $taskId,
public int $jobId,
public array $materials,
) {}
}