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,26 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Modules\Inventory\Application\Contracts;
|
||||
|
||||
use App\Modules\Inventory\Domain\Exceptions\InvalidStockImage;
|
||||
|
||||
/**
|
||||
* Keeps the image files of stock items, which help recognise them on a
|
||||
* touch screen: an upright JPEG without metadata and its thumbnail.
|
||||
*/
|
||||
interface StockItemImages
|
||||
{
|
||||
/**
|
||||
* @return array{path: string, thumbnailPath: string}
|
||||
*
|
||||
* @throws InvalidStockImage
|
||||
*/
|
||||
public function store(string $uploadedFilePath, int $itemId): array;
|
||||
|
||||
/**
|
||||
* @param list<string> $paths
|
||||
*/
|
||||
public function delete(array $paths): void;
|
||||
}
|
||||
Reference in New Issue
Block a user