edfa5dc1b1
Minor: add case FREE_TICKET to prevent compiler warning.
GerhardHoffmann2025-05-06 11:59:10 +02:00
d95741baae
compute_duration_for_parking_ticket(): Switch to different tariff based on product-type/product-id.
GerhardHoffmann2025-05-06 11:57:36 +02:00
e172e814e7
load and parse additional (included) tariff-files
GerhardHoffmann2025-05-06 11:57:14 +02:00
54921f0e85
If price (=key) is not found, compute the next smaller valid price (=key) and use this as maxPrice. Usage: (Innichen (508) with) direct coin input.
GerhardHoffmann2025-04-17 13:33:22 +02:00
077c2334ca
Restore pop_max_price in case it has been changed (for certain settings).
GerhardHoffmann2025-04-17 13:09:53 +02:00
d605af5c5a
Check prepaidIf and carryOverIf for null and emptyness.
GerhardHoffmann2025-04-16 11:32:20 +02:00
9b137c2873
Fix 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
GerhardHoffmann2025-04-03 11:53:47 +02:00
dd249a87d5
Set cnt-limit to 20. This allows a bigger time-range for tariff, which have in principle no time-limit.
GerhardHoffmann2025-04-02 15:28:46 +02:00
575885c19e
Merge branch 'master' into kleipeda-experimental
GerhardHoffmann2025-04-02 09:44:20 +02:00
d82a732a8d
if end of parking time equals carry-over-end, then, if configured, go back to carry-over-start.
GerhardHoffmann2025-04-01 14:26:21 +02:00
4b9a4319b3
ComputeDurationFromCost(): 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.
GerhardHoffmann2024-10-10 11:38:14 +02:00
5e673788b4
ComputeDurationFromCost(): Use helper function computeMinutesUntilCarryOverEnd() to compute the offset until the end of the carry-over-range.
GerhardHoffmann2024-10-10 11:36:14 +02:00
44e2ce24a3
Add helper computeMinutesUntilCarryOverEnd(). Used in new tariff-calculator. Replace of previous wrong approach of using m_range.duration.
GerhardHoffmann2024-10-10 11:30:53 +02:00
28f0ea9fce
Merge from kleipeda-experimental-snapshot-2024-09-27: started new implementation of tariff-calculator.
GerhardHoffmann2024-10-01 09:25:53 +02:00
d4363e71cd
Keep bacjward compatibility before using payment-method Unified.
GerhardHoffmann2024-09-27 14:24:10 +02:00
fd99c20bd9
Take into account new payment method 'Unified' to call new tariff-calculator.
GerhardHoffmann2024-09-27 14:20:20 +02:00
dbccdba9fe
isParkingAllowedForWeekDay(): Minor: adapt function call to changes parameter arity.
GerhardHoffmann2024-09-27 14:18:31 +02:00
b035f4f887
Calculator::GetDurationFromCost(): Minor: move scope of some variables upward.
GerhardHoffmann2024-09-27 14:17:35 +02:00
18f09fccb9
GetDurationFromCost(): Call ComputeDurationFromCost() of new tariff calculator for payment-method Unified.
GerhardHoffmann2024-09-27 14:10:02 +02:00
d95275a72d
Compute real netto_parking_time. This time will be used to find the real time-step, and from here the actual price to pay.
GerhardHoffmann2024-09-17 17:04:27 +02:00
577a17dc6a
Set seconds of serveral date-times to 0. Compute netto_parking_time (which includes carry-over duration).
GerhardHoffmann2024-09-17 17:03:29 +02:00
4030a4b165
Add pop_max_price_save in case pop_max_price has to be re-computed dynamically, so it can be reset
GerhardHoffmann2024-09-17 16:57:34 +02:00