Make quick sale products on machines as orders paid when ready
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Modules\Machines\Application\DTOs;
|
||||
|
||||
/**
|
||||
* A production step as entered: the machine (null: by hand), the duration
|
||||
* per piece in hours as typed ("0,25"), the work type its hours go to, and
|
||||
* materials per piece with quantities as typed.
|
||||
*/
|
||||
final readonly class ProductionStepData
|
||||
{
|
||||
/**
|
||||
* @param list<array{stockItemId: int, quantity: string}> $materials
|
||||
*/
|
||||
public function __construct(
|
||||
public ?int $machineId,
|
||||
public string $duration,
|
||||
public int $workTypeId,
|
||||
public array $materials = [],
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user