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:
2026-11-25 08:41:43 +02:00
co-authored by Claude Sonnet 5.5
parent 64f1e7c54a
commit a57b383e4d
17 changed files with 697 additions and 45 deletions
@@ -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;
}