Add the unbilled hours report
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]>
This commit is contained in:
@@ -2,15 +2,22 @@
|
||||
|
||||
namespace App\Modules\Reports\Presentation\Csv;
|
||||
|
||||
use App\Modules\Reports\Domain\ValueObjects\ReportPeriod;
|
||||
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.
|
||||
* 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>
|
||||
*/
|
||||
@@ -18,6 +25,8 @@ interface ReportCsv
|
||||
|
||||
/**
|
||||
* @return iterable<list<string|int>>
|
||||
*
|
||||
* @throws InvalidReportPeriod
|
||||
*/
|
||||
public function rows(ReportPeriod $period, Request $request): iterable;
|
||||
public function rows(Request $request): iterable;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user