Add stock items, groups and movements at a moving average cost
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?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,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user