28 lines
766 B
PHP
28 lines
766 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Inventory\Application\DTOs;
|
|
|
|
/**
|
|
* Stock taken out in a period, summed by item, kind, machine and job: the
|
|
* quantity (in thousandths) and value (in cents) as positive amounts
|
|
* taken; a stock count correction that added stock is negative. Reversals
|
|
* count with the movement they reverse. $kind is consumption, write_off
|
|
* or adjustment.
|
|
*/
|
|
final readonly class StockUsageEntry
|
|
{
|
|
public function __construct(
|
|
public int $itemId,
|
|
public string $itemName,
|
|
public string $groupName,
|
|
public string $unit,
|
|
public string $kind,
|
|
public ?int $machineId,
|
|
public ?int $jobId,
|
|
public int $quantityMilli,
|
|
public int $valueCents,
|
|
) {}
|
|
}
|