Report stock usage and value, add material cost to profitability, document phase 5
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Modules\Reports\Application\Contracts;
|
||||
|
||||
use App\Modules\Inventory\Application\DTOs\StockUsageEntry;
|
||||
use App\Modules\Inventory\Application\DTOs\StockValueEntry;
|
||||
use App\Modules\Reports\Domain\ValueObjects\ReportPeriod;
|
||||
|
||||
/**
|
||||
* Stock figures from the Inventory module and machine names from the
|
||||
* Machines module (spec 19.8).
|
||||
*/
|
||||
interface ReportStock
|
||||
{
|
||||
/**
|
||||
* @return list<StockUsageEntry>
|
||||
*/
|
||||
public function usage(ReportPeriod $period): array;
|
||||
|
||||
/**
|
||||
* @return list<StockValueEntry>
|
||||
*/
|
||||
public function valueOn(string $day): array;
|
||||
|
||||
/**
|
||||
* The value of stock used on each job's tasks, by job id.
|
||||
*
|
||||
* @return array<int, int>
|
||||
*/
|
||||
public function materialCostsByJob(ReportPeriod $period): array;
|
||||
|
||||
/**
|
||||
* @param list<int> $ids
|
||||
* @return array<int, string>
|
||||
*/
|
||||
public function machineNames(array $ids): array;
|
||||
}
|
||||
Reference in New Issue
Block a user