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]>
33 lines
733 B
PHP
33 lines
733 B
PHP
<?php
|
|
|
|
namespace App\Modules\Reports\Presentation\Csv;
|
|
|
|
use App\Modules\Reports\Domain\Exceptions\InvalidReportPeriod;
|
|
use Illuminate\Http\Request;
|
|
|
|
/**
|
|
* A report as CSV rows, with the filters of the report page read from the
|
|
* request's query string (see CsvFilters).
|
|
*/
|
|
interface ReportCsv
|
|
{
|
|
/**
|
|
* The file name without the extension, e.g. "tunnit-2026-11-01-2026-11-30".
|
|
*
|
|
* @throws InvalidReportPeriod
|
|
*/
|
|
public function fileName(Request $request): string;
|
|
|
|
/**
|
|
* @return list<string>
|
|
*/
|
|
public function headers(): array;
|
|
|
|
/**
|
|
* @return iterable<list<string|int>>
|
|
*
|
|
* @throws InvalidReportPeriod
|
|
*/
|
|
public function rows(Request $request): iterable;
|
|
}
|