Pure orchestration (importPlantHours) takes parsed source rows + vehicle/site lookups and produces prepared plant_hours_log records + per-row errors. The route handles multipart upload, batch creation, PB lookups, and insert-with-error-capture. Mismatched unit_type vehicles are imported as audit-only records; PB dup-key failures are recorded as 'duplicate' errors instead of failing the batch. |
||
|---|---|---|
| .. | ||
| api | ||
| dashboard | ||
| login | ||
| apple-icon.png | ||
| favicon.ico | ||
| globals.css | ||
| layout.tsx | ||
| page.tsx | ||