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,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;
|
||||
}
|
||||
Reference in New Issue
Block a user