Add the profitability report and the internal hourly cost
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]>
This commit is contained in:
@@ -24,4 +24,9 @@ interface ReportCatalog
|
||||
* @return array<int, string>
|
||||
*/
|
||||
public function serviceUnits(): array;
|
||||
|
||||
/**
|
||||
* The internal cost of an hour of work in cents (VAT 0), null when not set.
|
||||
*/
|
||||
public function internalHourlyCostCents(): ?int;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Modules\Reports\Application\Contracts;
|
||||
|
||||
use App\Modules\Reports\Application\DTOs\JobRevenue;
|
||||
use App\Modules\Reports\Domain\ValueObjects\ReportPeriod;
|
||||
|
||||
/**
|
||||
* What was billed, from the Billing module.
|
||||
*/
|
||||
interface ReportRevenue
|
||||
{
|
||||
/**
|
||||
* Amounts billed by the created billing materials of the billing months
|
||||
* the period touches, by job.
|
||||
*
|
||||
* @return array<int, JobRevenue> Keyed by job id.
|
||||
*/
|
||||
public function byJob(ReportPeriod $period): array;
|
||||
}
|
||||
Reference in New Issue
Block a user