Add Reports module with the hours by person report
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]>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Modules\Reports\Application\DTOs;
|
||||
|
||||
/**
|
||||
* Hours by person: a row per person by name, their total, the rows behind
|
||||
* them, and the customers and service units the hours can be narrowed to.
|
||||
*/
|
||||
final readonly class HoursReport
|
||||
{
|
||||
/**
|
||||
* @param list<PersonHours> $people
|
||||
* @param list<HoursLine> $lines
|
||||
* @param array<int, string> $customers
|
||||
* @param array<int, string> $serviceUnits
|
||||
*/
|
||||
public function __construct(
|
||||
public array $people,
|
||||
public PersonHours $total,
|
||||
public array $lines,
|
||||
public array $customers,
|
||||
public array $serviceUnits,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user