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
559 B
PHP
22 lines
559 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Billing\Application\Contracts;
|
|
|
|
use App\Modules\Billing\Application\DTOs\BilledJobRevenue;
|
|
|
|
/**
|
|
* What created billing materials billed, for management's reports.
|
|
*/
|
|
interface BilledRevenueQueries
|
|
{
|
|
/**
|
|
* Invoice lines of the created billing materials of the billing months
|
|
* from the first to the last (Y-m, both included), summed by job.
|
|
*
|
|
* @return array<int, BilledJobRevenue> Keyed by job id.
|
|
*/
|
|
public function byJob(string $fromMonth, string $toMonth): array;
|
|
}
|