edfa5dc1b1Minor: add case FREE_TICKET to prevent compiler warning.Gerhard Hoffmann2025-05-06 11:59:10 +02:00
d95741baaecompute_duration_for_parking_ticket(): Switch to different tariff based on product-type/product-id.Gerhard Hoffmann2025-05-06 11:57:36 +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.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
2.4.99
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