MEGAINFRA-WEBAPP/src/app/api/clock
DEls 99d52e9760 feat(clock): scan plant on and off site, with weekend overtime
Routine hours now come from the fuel logger import, so the fleet scanner
only books machines onto and off sites:

- first scan books a machine in (opens a plant_site_stays row)
- a weekday second scan is the last scan and books it out
- a Saturday/Sunday scan asks: weekend overtime, or last scan
- a machine still on another site is scanned out there and in here
- an unknown QR can be added on site (name, type, supplier, hours)
- the site comes from GPS, or the scanner asks "What site is this?"

Machines get a hire supplier (dropdown or add new), and the vehicle
pages show a Site history card. Migration applied to live PocketBase.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 13:03:18 +02:00
..
cash-float Track cash float spend since top-up 2026-10-30 00:05:47 +02:00
employee-lookup fix: harden workforce, plant and financials 2026-10-19 13:18:31 +02:00
employee-search feat(workforce): add active and inactive workers 2026-10-07 13:41:05 +02:00
events/[id]/correct feat(clock): fix a missing clock-in from Needs attention 2026-10-09 12:57:09 +02:00
issues/[id] fix: harden workforce, plant and financials 2026-10-19 13:18:31 +02:00
plant-scan feat(clock): scan plant on and off site, with weekend overtime 2026-11-06 13:03:18 +02:00
scan feat(clock): a scan at another site moves workers and vehicles there automatically 2026-10-21 06:34:05 +02:00
vehicle-lookup feat(clock): scan plant on and off site, with weekend overtime 2026-11-06 13:03:18 +02:00
vehicle-reading-remove feat(fuel): delete a test or mistaken meter reading with a reason 2026-10-26 17:16:01 +02:00
vehicle-scan feat(clock): a scan at another site moves workers and vehicles there automatically 2026-10-21 06:34:05 +02:00