37 lines
970 B
PHP
37 lines
970 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Inventory\Application\Contracts;
|
|
|
|
use App\Modules\Inventory\Application\DTOs\StockUsageEntry;
|
|
use App\Modules\Inventory\Application\DTOs\StockValueEntry;
|
|
|
|
/**
|
|
* Stock figures for management's reports (spec 19.8). Days are Y-m-d.
|
|
*/
|
|
interface StockReportQueries
|
|
{
|
|
/**
|
|
* Use, write-offs and stock count corrections between the days.
|
|
*
|
|
* @return list<StockUsageEntry>
|
|
*/
|
|
public function usage(string $from, string $to): array;
|
|
|
|
/**
|
|
* Every item with movements up to the day, or in use, in group order.
|
|
*
|
|
* @return list<StockValueEntry>
|
|
*/
|
|
public function valueOn(string $day): array;
|
|
|
|
/**
|
|
* The value of the stock used and written off on jobs' tasks between
|
|
* the days, by job id (spec 19.8: material cost in profitability).
|
|
*
|
|
* @return array<int, int>
|
|
*/
|
|
public function materialCostsByJob(string $from, string $to): array;
|
|
}
|