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,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Modules\Reports\Presentation\Csv;
|
||||
|
||||
use App\Modules\Reports\Domain\ValueObjects\ReportPeriod;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
/**
|
||||
* A report as CSV rows, with the filters of the report page read from the
|
||||
* request's query string.
|
||||
*/
|
||||
interface ReportCsv
|
||||
{
|
||||
/**
|
||||
* @return list<string>
|
||||
*/
|
||||
public function headers(): array;
|
||||
|
||||
/**
|
||||
* @return iterable<list<string|int>>
|
||||
*/
|
||||
public function rows(ReportPeriod $period, Request $request): iterable;
|
||||
}
|
||||
Reference in New Issue
Block a user