Management's reports (spec 13) get their own module that reads the other modules through ports. The first report sums hours by person in a period, narrowed by service unit or customer, with breakdowns, a chart and CSV. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
30 lines
781 B
PHP
30 lines
781 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Reports\Application\DTOs;
|
|
|
|
/**
|
|
* A person's hours in the period in quarter hours: in all, on customers'
|
|
* and on internal jobs, waiting for approval and billed, broken down by
|
|
* work type and by job (most hours first).
|
|
*/
|
|
final readonly class PersonHours
|
|
{
|
|
/**
|
|
* @param list<HoursBreakdown> $byWorkType
|
|
* @param list<HoursBreakdown> $byJob
|
|
*/
|
|
public function __construct(
|
|
public int $userId,
|
|
public string $name,
|
|
public int $quarters,
|
|
public int $customerQuarters,
|
|
public int $internalQuarters,
|
|
public int $unapprovedQuarters,
|
|
public int $billedQuarters,
|
|
public array $byWorkType = [],
|
|
public array $byJob = [],
|
|
) {}
|
|
}
|