isTrainee (or equivalent) is added to inspectorSchema.ts as a boolean. It is set in the inspector's profile settings, not per-job.isTrainee: true are automatically excluded from the pay split for any job they are assigned to. No manual removal step required.isTrainee toggle lives in the inspector profile settings directly above the existing payroll-enabled toggle, consistent with the grouping of inspector-level behavioral flags.isTrainee should be queryable in worklist conditions and action flow triggers in a future pass. No additional behaviors are in scope for this issue, but the flag should be built with that in mind.attik-backend/src/models/inspectorSchema.ts — Add isTrainee: Boolean to the inspector schema. This is the source of truth for the flag.attik-backend/src/util/functions/payroll/dataFunc.ts and payrollContext.ts — The payroll computation pipeline needs to check isTrainee on each inspector and exclude them from pay split calculations when the flag is set.attik-backend/src/util/types/serverTypeCollection/people.ts — Frontend type definition for the inspector/person object; will need isTrainee added to reflect the schema change.attik-frontend/src/components/task-check/SingleJobsBar.tsx — The work order inspector display where the trainee badge needs to appear next to the inspector's name when isTrainee is true.isTrainee toggle is placed directly above the payroll-enabled toggle in the inspector edit screen.attik-frontend/src/app/tools/hr/payroll/PayrollOverview.tsx — Display-only; should render correctly once the backend excludes trainees from computed pay splits. No logic change expected here, but worth verifying the exclusion flows through cleanly.attik-mobile)attik-mobile/app/(app)/inspection/[id].tsx — The inspection detail screen where assigned inspectors are listed. Trainee badge should appear alongside a trainee inspector's name, consistent with the work order treatment.Please authenticate to join the conversation.
Planned
Main App
About 5 hours ago
Linear
Get notified by email when there are changes.
Planned
Main App
About 5 hours ago
Linear
Get notified by email when there are changes.