Profitability by job and service unit from a period's hours, expenses and the created billing materials of its months. Hours are costed at one internal hourly cost, set on the price list maintenance page; a job of several service units is shared evenly between them. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
22 lines
483 B
PHP
22 lines
483 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Reports\Application\DTOs;
|
|
|
|
use App\Modules\Reports\Domain\ValueObjects\Profit;
|
|
|
|
/**
|
|
* A service unit's profitability in the period: its jobs' figures, a job
|
|
* of several service units shared evenly between them.
|
|
*/
|
|
final readonly class ServiceUnitProfit
|
|
{
|
|
public function __construct(
|
|
public int $serviceUnitId,
|
|
public string $name,
|
|
public int $jobCount,
|
|
public Profit $profit,
|
|
) {}
|
|
}
|