1
0
Fork 0
fahrPool/web/lib/auftraege
Jonny 4459a6cfcb feat: add fahrt-beenden, stornieren and folgeauftrag suggestion
Adds fahrtBeenden (unterwegs -> abgeschlossen with end_km validation)
and stornieren (any non-terminal status -> storniert) Server Actions,
plus findeFolgeauftrag to surface a linked follow-up order on the
detail page once an order is abgeschlossen.

kannStornieren uses a local admin/disponent role check rather than
canManageUsers, since the latter is scoped to user management and
would incorrectly hide the storno action from disponents.
2026-07-05 22:36:19 +02:00
..
foto-positionen.ts feat: add fahrt validation helpers for km and required photos 2026-07-05 17:20:40 +02:00
queries.ts feat: add fahrt-beenden, stornieren and folgeauftrag suggestion 2026-07-05 22:36:19 +02:00
validate-fahrt.test.ts feat: add fahrt validation helpers for km and required photos 2026-07-05 17:20:40 +02:00
validate-fahrt.ts feat: add fahrt validation helpers for km and required photos 2026-07-05 17:20:40 +02:00