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:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Modules\Inventory\Domain\Contracts;
|
||||
|
||||
/**
|
||||
* Default materials of workflow steps waiting on the tasks made of them,
|
||||
* until the assignee records or dismisses them (spec 19.4).
|
||||
*/
|
||||
interface TaskMaterialSuggestionRepository
|
||||
{
|
||||
public function add(int $taskId, int $stockItemId, int $quantityMilli): void;
|
||||
|
||||
/**
|
||||
* @return array{id: int, taskId: int, stockItemId: int, quantityMilli: int}|null
|
||||
*/
|
||||
public function find(int $id): ?array;
|
||||
|
||||
public function remove(int $id): void;
|
||||
}
|
||||
Reference in New Issue
Block a user