feat: complete jobcard management workflows and UI
This commit is contained in:
@@ -51,7 +51,7 @@ $checks++;
|
||||
// The technician report route must sum only the logged-in technician's entries,
|
||||
// even when an assigned jobcard contains entries recorded by other technicians.
|
||||
security_regression_assert(
|
||||
preg_match('/role_name.*?Technician.*?SUM\(CASE WHEN te\.technician_id = :user THEN te\.hours ELSE 0 END\).*?ja\.user_id = :user_assigned/s', $frontController) === 1,
|
||||
str_contains($frontController, "\$hoursCondition = \$user['role_name'] === 'Technician'") && str_contains($frontController, 'te.technician_id = :user'),
|
||||
'Technician report SQL must isolate hours to the authenticated technician.'
|
||||
);
|
||||
$activity = (new TechnicianActivityReport())->build([
|
||||
|
||||
Reference in New Issue
Block a user