78cae24389Fix: if start-time is out-of-range (after valid time for sell), switch to next valid time, taking into account if next valid time is on next day.
vorkauf-fix-2025-April-22
Gerhard Hoffmann2025-04-23 11:00:33 +02:00
54921f0e85If price (=key) is not found, compute the next smaller valid price (=key) and use this as maxPrice. Usage: (Innichen (508) with) direct coin input.
master
Gerhard Hoffmann2025-04-17 13:33:22 +02:00
077c2334caRestore pop_max_price in case it has been changed (for certain settings).Gerhard Hoffmann2025-04-17 13:09:53 +02:00
d605af5c5aCheck prepaidIf and carryOverIf for null and emptyness.Gerhard Hoffmann2025-04-16 11:32:20 +02:00
9b137c2873Fix in Calculator::GetPriceForTimeStep(): Allow some tolerance (of 3 minutes) when looking up the current time-step value in the duration-array. Otherwise, when corossing a minute-boundary, it can happen to not find the match and returning a price of 0 (which is almost always wrong).
2.5.0
kleipeda-experimental
Gerhard Hoffmann2025-04-03 11:53:47 +02:00
dd249a87d5Set cnt-limit to 20. This allows a bigger time-range for tariff, which have in principle no time-limit.Gerhard Hoffmann2025-04-02 15:28:46 +02:00
4b9a4319b3ComputeDurationFromCost(): Fix: take into account that there may be more than just two carry-over-ranges. For instance, in Korneuburg (714), there are three as they have a break from 12:00-14:00.Gerhard Hoffmann2024-10-10 11:38:14 +02:00
5e673788b4ComputeDurationFromCost(): Use helper function computeMinutesUntilCarryOverEnd() to compute the offset until the end of the carry-over-range.Gerhard Hoffmann2024-10-10 11:36:14 +02:00
44e2ce24a3Add helper computeMinutesUntilCarryOverEnd(). Used in new tariff-calculator. Replace of previous wrong approach of using m_range.duration.Gerhard Hoffmann2024-10-10 11:30:53 +02:00
28f0ea9fceMerge from kleipeda-experimental-snapshot-2024-09-27: started new implementation of tariff-calculator.Gerhard Hoffmann2024-10-01 09:25:53 +02:00
d4363e71cdKeep bacjward compatibility before using payment-method Unified.Gerhard Hoffmann2024-09-27 14:24:10 +02:00
fd99c20bd9Take into account new payment method 'Unified' to call new tariff-calculator.Gerhard Hoffmann2024-09-27 14:20:20 +02:00
dbccdba9feisParkingAllowedForWeekDay(): Minor: adapt function call to changes parameter arity.Gerhard Hoffmann2024-09-27 14:18:31 +02:00
b035f4f887Calculator::GetDurationFromCost(): Minor: move scope of some variables upward.Gerhard Hoffmann2024-09-27 14:17:35 +02:00
18f09fccb9GetDurationFromCost(): Call ComputeDurationFromCost() of new tariff calculator for payment-method Unified.Gerhard Hoffmann2024-09-27 14:10:02 +02:00
d95275a72dCompute real netto_parking_time. This time will be used to find the real time-step, and from here the actual price to pay.Gerhard Hoffmann2024-09-17 17:04:27 +02:00
577a17dc6aSet seconds of serveral date-times to 0. Compute netto_parking_time (which includes carry-over duration).Gerhard Hoffmann2024-09-17 17:03:29 +02:00
275c3ec869compute_price_for_parking_ticket(): Pass start-date-time to parking-time-checker.Gerhard Hoffmann2024-09-03 11:19:23 +02:00
6d2bde1fe9getPaymentOptionIndex(): Fix: make sure only one payment option can be chosen.Gerhard Hoffmann2024-09-03 11:17:31 +02:00
f02521d3c2parseWeekDay(): for the park-time-limit checking take into account that the start-date-time and end-date-time are on different days.Gerhard Hoffmann2024-09-03 11:15:08 +02:00
75f1c1bb76Checking parking-time-limit: provide start-date-time as well, because the limit counts only from one day to following day (e.g. Sunday to Monday or from holiday to next day).Gerhard Hoffmann2024-09-03 11:10:24 +02:00