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]>
28 lines
730 B
PHP
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,
|
|
) {}
|
|
}
|