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,26 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Modules\Machines\Application\DTOs;
|
||||
|
||||
/**
|
||||
* A step of a product's production process as stored. $position counts
|
||||
* from 0. Materials are per piece, quantities in thousandths of the item's
|
||||
* unit (the unit key in $unit).
|
||||
*/
|
||||
final readonly class ProductionStepSummary
|
||||
{
|
||||
/**
|
||||
* @param list<array{stockItemId: int, itemName: string, unit: string, quantityMilli: int}> $materials
|
||||
*/
|
||||
public function __construct(
|
||||
public int $position,
|
||||
public ?int $machineId,
|
||||
public ?string $machineName,
|
||||
public int $durationQuarters,
|
||||
public int $workTypeId,
|
||||
public string $workTypeName,
|
||||
public array $materials,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user