Count stock and correct the differences on confirmation

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-26 16:34:08 +02:00
co-authored by Claude Sonnet 5.5
parent bca1eed166
commit 0de0e332b2
27 changed files with 1568 additions and 0 deletions
@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace App\Modules\Inventory\Application\Contracts;
use App\Modules\Inventory\Application\DTOs\InventoryCountLine;
use App\Modules\Inventory\Application\DTOs\InventoryCountSummary;
interface InventoryCountQueries
{
/**
* @return list<InventoryCountSummary> Newest first.
*/
public function counts(): array;
public function findCount(int $id): ?InventoryCountSummary;
/**
* The items of the count in group order and by name: those in its
* groups that are in use, and every item counted in it.
*
* @return list<InventoryCountLine>
*/
public function lines(int $countId): array;
}