Admin master
Bring a plant in from its own files, in this order: people, then the shift roster, then the work-centre map. Each import reports every rejected row with its line number.
Every row is validated. The good rows load; the bad ones come back below with the line number and the reason (FR-PM03-01).
Expected header: employee_code,name,email,phone,role,designation,department_code,default_shift_code,org_node_id,node_ref,status. The obvious spelling variants are accepted; a missing required column rejects the row, not the file.
Assigns users to shifts by plant-local date. A date with no roster row falls back to the user's default shift (FR-PM05-02).
Expected header: employee_code,date,shift_code. The obvious spelling variants are accepted; a missing required column rejects the row, not the file.
Choose a plant first: a roster belongs to one plant's calendar.
Turns a SAP work centre into a PM department and a designation, so an ingested order reaches the right pool without anyone touching it (FR-PM02-03).
Expected header: sap_work_centre,department_code,designation. The obvious spelling variants are accepted; a missing required column rejects the row, not the file.