Files
petriandClaude Sonnet 5.5 a57b383e4d Add the unbilled hours report
Hours on customers' billable jobs that no billing material has taken,
by job and work type up to a day, valued at the hourly rates for jobs
billed by the hour, with a chart by service unit and CSV.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 08:41:43 +02:00

28 lines
730 B
PHP

<?php
declare(strict_types=1);
namespace App\Modules\Reports\Application\DTOs;
/**
* A job with unbilled hours: approved and waiting for approval in quarter
* hours, their value without VAT (null when a fixed price or monthly fee
* covers them), whether a work type lacks a rate, the first day worked and
* the hours by work type.
*/
final readonly class UnbilledJob
{
/**
* @param list<UnbilledWorkType> $workTypes
*/
public function __construct(
public ReportJob $job,
public int $approvedQuarters,
public int $unapprovedQuarters,
public ?int $valueCents,
public bool $missingRate,
public string $oldestDay,
public array $workTypes,
) {}
}