mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-13 15:51:00 +00:00
299beb65b1
A car booking without an end day is a one-day booking everywhere else in the plan, but the road trip read it as a car never handed back: only its pick-up desk stood on the road. Two one-way car bookings on one day (Bologna to Villach, then Villach to Klagenfurt) therefore drove from the first pick-up to the second and on to whatever came before, counting the road between the two cities twice and never reaching Klagenfurt. This applies to the planner, the phone and calculate_roadtrip alike, since all three seat the desks through the shared carrierSeam. Such a car now has its return desk on the pick-up day. A return without a time goes back before the next car of that day is collected rather than closing the day behind it, so each one-way car drives its own road once. Bookings with a return day and cars without a located return desk are unchanged. Closes #2894