Count stock and correct the differences on confirmation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Modules\Inventory\Application\DTOs;
|
||||
|
||||
/**
|
||||
* A stock count as listed. $groupNames is empty for the whole stock;
|
||||
* $confirmedAt is "Y-m-d H:i" in the company's time zone.
|
||||
*/
|
||||
final readonly class InventoryCountSummary
|
||||
{
|
||||
/**
|
||||
* @param list<string> $groupNames
|
||||
*/
|
||||
public function __construct(
|
||||
public int $id,
|
||||
public string $countedOn,
|
||||
public bool $isConfirmed,
|
||||
public array $groupNames,
|
||||
public string $startedByName,
|
||||
public ?string $confirmedByName,
|
||||
public ?string $confirmedAt,
|
||||
public int $countedItems,
|
||||
public ?int $valueBeforeCents,
|
||||
public ?int $valueAfterCents,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user