BOHA 1a175e805b fix: use vehicle initial_km as start_km for first trip record
When no trips exist for a vehicle, the last-km endpoint now returns
the vehicle's initial_km instead of 0, matching the PHP behavior:
COALESCE(MAX(end_km), vehicle.initial_km, 0)

Also fixed ordering from id DESC to end_km DESC for correctness.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 10:49:42 +01:00
2026-03-23 08:46:51 +01:00
2026-03-23 08:46:51 +01:00
2026-03-23 08:46:51 +01:00
2026-03-23 08:46:51 +01:00
2026-03-23 08:46:51 +01:00
2026-03-23 08:46:51 +01:00
2026-03-23 08:46:51 +01:00
2026-03-23 08:46:51 +01:00
2026-03-23 08:46:51 +01:00
2026-03-23 08:46:51 +01:00
Description
No description provided
16 MiB
v1.5.1 Latest
2026-04-02 20:01:44 +02:00
Languages
TypeScript 94%
CSS 5.9%