Files
2026-11-26 16:18:59 +02:00

23 lines
584 B
PHP

<?php
declare(strict_types=1);
namespace App\Modules\Inventory\Application\DTOs;
/**
* A purchase (hankinta) as entered: the day (Y-m-d), the quantity, and the
* price without VAT either in total or per unit (the other left empty).
*/
final readonly class PurchaseData
{
public function __construct(
public int $itemId,
public string $occurredOn,
public string $quantity,
public string $totalPrice = '',
public string $unitPrice = '',
public ?string $supplier = null,
public ?string $documentNumber = null,
) {}
}