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]>
31 lines
755 B
PHP
31 lines
755 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\TimeTracking\Application\Contracts;
|
|
|
|
use App\Modules\TimeTracking\Application\DTOs\ReportedHours;
|
|
use App\Modules\TimeTracking\Application\DTOs\UnbilledHours;
|
|
|
|
/**
|
|
* Hours summed for management's reports.
|
|
*/
|
|
interface TimeReportQueries
|
|
{
|
|
/**
|
|
* Hours worked from the first to the last day (Y-m-d, both included),
|
|
* summed by user, job and work type.
|
|
*
|
|
* @return list<ReportedHours>
|
|
*/
|
|
public function hoursBetween(string $from, string $to): array;
|
|
|
|
/**
|
|
* Hours not yet billed, worked on or before the day (Y-m-d), summed by
|
|
* job and work type.
|
|
*
|
|
* @return list<UnbilledHours>
|
|
*/
|
|
public function unbilledUntil(string $day): array;
|
|
}
|