Assigned technicians
';
@@ -774,6 +774,10 @@ if ($route === 'reports') {
$detailData[] = ['TOTAL HOURS', '', '', '', '', '', '', '', round($totalReportHours, 2)];
if ($format === 'xls') { header('Content-Type: application/vnd.ms-excel; charset=UTF-8'); header('Content-Disposition: attachment; filename="jobcard-detail-report.xls"'); header('Cache-Control: no-store'); echo '
'; foreach ($detailHeaders as $header) echo '| ' . e($header) . ' | '; echo '
'; foreach ($detailData as $row) { echo ''; foreach ($row as $cell) echo '| ' . e((string)($cell ?? '')) . ' | '; echo '
'; } echo '
'; exit; }
if ($format === 'print') { header('Content-Type: text/html; charset=UTF-8'); header('Cache-Control: no-store'); echo (new \PrintReportRenderer())->render('Detailed jobcard report', $detailHeaders, $detailData); exit; }
+ if ($format === null || $format === '') {
+ render_header('Detailed report');
+ echo '
Detailed report
Each time entry is shown as its own line item.
'; foreach ($detailHeaders as $header) echo '| ' . e($header) . ' | '; echo '
'; foreach ($detailData as $row) { echo ''; foreach ($row as $cell) echo '| ' . nl2br(e((string)($cell ?? ''))) . ' | '; echo '
'; } echo '
'; render_footer(); exit;
+ }
}
$where = [];
$params = [];