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 +0200
5e673788b4ComputeDurationFromCost(): Use helper function computeMinutesUntilCarryOverEnd() to compute the offset until the end of the carry-over-range.Gerhard Hoffmann2024-10-10 11:36:14 +0200
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 +0200
28f0ea9fceMerge from kleipeda-experimental-snapshot-2024-09-27: started new implementation of tariff-calculator.Gerhard Hoffmann2024-10-01 09:25:53 +0200
d4363e71cdKeep bacjward compatibility before using payment-method Unified.Gerhard Hoffmann2024-09-27 14:24:10 +0200
fd99c20bd9Take into account new payment method 'Unified' to call new tariff-calculator.Gerhard Hoffmann2024-09-27 14:20:20 +0200
dbccdba9feisParkingAllowedForWeekDay(): Minor: adapt function call to changes parameter arity.Gerhard Hoffmann2024-09-27 14:18:31 +0200
b035f4f887Calculator::GetDurationFromCost(): Minor: move scope of some variables upward.Gerhard Hoffmann2024-09-27 14:17:35 +0200
18f09fccb9GetDurationFromCost(): Call ComputeDurationFromCost() of new tariff calculator for payment-method Unified.Gerhard Hoffmann2024-09-27 14:10:02 +0200
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 +0200
577a17dc6aSet seconds of serveral date-times to 0. Compute netto_parking_time (which includes carry-over duration).Gerhard Hoffmann2024-09-17 17:03:29 +0200
275c3ec869compute_price_for_parking_ticket(): Pass start-date-time to parking-time-checker.Gerhard Hoffmann2024-09-03 11:19:23 +0200
6d2bde1fe9getPaymentOptionIndex(): Fix: make sure only one payment option can be chosen.Gerhard Hoffmann2024-09-03 11:17:31 +0200
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 +0200
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 +0200
cce3db301bMinor: comment out some code to prevent compiler warnings (about some unused variables).Gerhard Hoffmann2024-09-02 17:15:33 +0200
5cab0de9fbUse free function getPaymentOptionIndex() to compute index of valid payment-option-section in tariff-file based on configured businessHours.Gerhard Hoffmann2024-09-02 17:14:20 +0200
8cdeef26fcCheck if computed ticket-end-time violates a carry-over-limit defined in tariff-file.Gerhard Hoffmann2024-09-02 17:11:48 +0200
52ebbf7bc9Use free function getPaymentOptionIndex() in serveral places to compute valid index of a payment-option-section within tariff file. If this is not possible, then try the already available functionality.Gerhard Hoffmann2024-09-02 17:09:26 +0200
349e9d8b06Add free functions isHoliday() to check if the current day is a holiday and previousDayHoliday() to check if previous day (relative to endtime) is a holiday.Gerhard Hoffmann2024-09-02 17:05:32 +0200
68a1c24861Add free function getPaymentOptionIndex(): Compute payment option index base on current start-date-time and businesshour-setiing in tariff-file. Returns -1 to indicate error.Gerhard Hoffmann2024-09-02 17:03:37 +0200
c946c106d1Configuration::ParseJson(): Save the pop_plus_steps setting: sometimes it is necessary to adapt the pop_plus_steps-variable in order to hit a time-limit-boundary exactly. Otherwise the next computed time-step might overshoot the time-limit, and when moving backwards (via Minus-Button) there is a better resolution: going backwards, the user could hit the exact time-limit, which he could not when going up.Gerhard Hoffmann2024-09-02 16:58:34 +0200
f24f1fe646Configuration::ParseJson(): Call parseWeekDay() to reading the week-day-settings.Gerhard Hoffmann2024-09-02 16:57:11 +0200
c6b8a37263ParseJson(): Minor: some reformatting of source code.Gerhard Hoffmann2024-09-02 16:55:48 +0200
58d8f16681ParseWeekDay(): Parsing "Monday" - "Sunday" section i a tariff-file.Gerhard Hoffmann2024-09-02 16:49:21 +0200
431664d8b9IdentifyJsonMember(): Add "Monday" - "Sunday" as level-1 sections in a tariff-file.Gerhard Hoffmann2024-09-02 16:47:46 +0200