03dd6c44da
Always reset pop_max_price to configured value.
2024-09-30 16:58:23 +02:00
212c792b77
compute_price_for_parking_ticket():
...
Include opverpaid option in price-computation.
2024-09-30 16:57:18 +02:00
ab3cdb32ae
compute_next_timestep():
...
Restrict time-step-list when time-limit has been reached: +/-_button
does not move upward anymore.
2024-09-30 16:55:25 +02:00
d4363e71cd
Keep bacjward compatibility before using payment-method Unified.
2024-09-27 14:24:10 +02:00
fd99c20bd9
Take into account new payment method 'Unified' to call new tariff-calculator.
2024-09-27 14:20:20 +02:00
77e1414c13
compute_duration_for_parking_ticket():
...
Recompute pop_max_price using netto-parking-time.
Search Duration for the time-step with time-step == netto-parking-time,
then search for the corresponding price in PaymentRate.
The result is the new pop_max_price.
2024-09-17 17:05:23 +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.
2024-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).
2024-09-17 17:03:29 +02:00
d8d32820a3
compute_price_for_parking_ticket():
...
Reset pop_max_price to original value using pop_max_price_saved.
2024-09-17 17:01:32 +02:00
932d4e8cb9
check it ticket-end-time hits carry-over-start. if configured, move to end of carry-over.
2024-09-16 16:56:48 +02:00
38abc65425
compute_price_for_parking_ticket():
...
Check if minutesUntilCarryOver is positive (usually must be).
2024-09-16 16:54:25 +02:00
205896903b
Handle SUCCESS_MAXPRICE (calc-state).
2024-09-16 16:53:44 +02:00
7c0514e241
save current state
2024-09-13 10:42:45 +02:00
fa10ea4b89
compute_price_for_parking_ticket():
...
In case parking-time-limit is violated, return with an error.
Commented out: use another possiblity: cut max-parking-time
so that parking-time-limit is not violated.
2024-09-11 11:49:31 +02:00
05f03a623b
compute_price_for_parking_ticket():
...
If after crossing a carry-over-time range (taking several days)
check if we have to carry over again on the target day.
2024-09-11 11:47:50 +02:00
03e9076962
compute_price_for_parking_ticket():
...
Minor: add some debug output.
2024-09-11 11:46:36 +02:00
5dbd3645c6
compute_price_for_parking_ticket():
...
Fetch prepaid-option-id (possibly recalculating it depending
on year-period), and fetch associated prepaid-options.
2024-09-11 11:44:09 +02:00
d21f69cb9b
get_maximal_parkingprice():
...
Fetch maxPrice directly instead of using utility function.
2024-09-11 11:42:15 +02:00
7a53a68850
getPaymentOptionIndex(): add start-time parameter
2024-09-06 12:05:41 +02:00
275c3ec869
compute_price_for_parking_ticket():
...
Pass start-date-time to parking-time-checker.
2024-09-03 11:19:23 +02:00
f92906f680
Minor: debug output.
2024-09-02 17:13:11 +02:00
8cdeef26fc
Check if computed ticket-end-time violates a carry-over-limit defined in
...
tariff-file.
2024-09-02 17:11:48 +02:00
52ebbf7bc9
Use 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.
2024-09-02 17:09:26 +02:00
a3983ed427
check for time-step-config == STATIC
2024-08-21 17:46:35 +02:00
f8805e9e78
compute_duration_for_parking_ticket():
...
Fix: handle carry-over for coin-insertion.
2024-08-21 15:40:55 +02:00
7a6360f392
compute_duration_for_parking_ticket():
...
Fix: handle prepaid-setting for coin-insertion.
2024-08-21 15:39:44 +02:00
465b2274a1
compute_duration_for_parking_ticket():
...
Adapt end-time in case it is midnight: 00:00 -> 23:59
2024-08-02 13:15:11 +02:00
b394ed46cc
In case end-parking-time ends with 00:00, set it to 23:59.
2024-08-02 11:09:20 +02:00
3dda2d8355
Check if prepaid-option is set.
2024-08-02 11:08:52 +02:00
1152c3824e
Minor: add some debug output.
2024-08-02 11:08:32 +02:00
4271c0fb31
Fixed compute_next_timestep() for degressive tariff:
...
compute_next_timestep() was actually never called for such a tariff.
2024-08-02 10:50:25 +02:00
9cb7d4aea6
compute_price_for_parking_ticket():
...
Added handling for prepaid and carry-over.
2024-08-01 16:04:57 +02:00
cde490bab2
compute_next_time_step():
...
Added handling with pop_plus_steps/pop_minus_steps:
'+' usually takes more than one time step.
'-' is usually 1.
Changed behaviour when current time is not found in the list of time steps:
Search for the entry with the smallest distance to 'current time'.
If the distance is smaller than 3 minutes, then use 'current time' as new
entry in the list of time steps.
2024-08-01 16:00:10 +02:00
7536f89d75
compute_duration_for_parking_ticket():
...
read prepaid-setting from tariff-file, if possible.
2024-07-30 15:32:58 +02:00
9a6b2b195d
get_minimal_parking_price(): compute this price dynamically according to settings
...
in the tariff-file. Introduced for Fuchs (500) for Valser Alm (Location: Fane)
2024-07-30 15:29:47 +02:00
894e23332f
compute option index using permit type.
2024-07-29 17:32:15 +02:00
fbc255a6f2
Fix: compute_next_time_step(): removed check for product ids.
2024-07-29 17:31:33 +02:00
3cd02296b0
compute_duration_for_parking_ticket():
...
Fix: pass PERMIT_TYPE explicitly to correct arity of GetDurationFromCost().
2024-07-29 11:25:12 +02:00
f1493f417f
get_maximal_parkingprice():
...
implement for SHORT_TERM_PARKING_BUS and SHORT_TERM_PARKING_PKW.
2024-07-29 11:24:05 +02:00
356e3be178
Pass PERMIT_TYPE to get_minimal_parkingtime() and get_maximal_parkingtime()
...
to override default parameter value.
2024-07-29 11:22:22 +02:00
b84f80887e
Checkin for testing
2024-07-26 17:01:44 +02:00
b7facb9d60
checkin for tariff02.json
2024-07-26 10:59:45 +02:00
b0ecef0361
Use of permitType in several places
2024-07-25 09:48:12 +02:00
b19cfd693c
Minor: add some debug output.
2024-07-24 12:34:05 +02:00
eb4ef0c3b5
Allow adjustment of the step list by a tolerance of 5 minutes per step
2024-07-23 12:48:50 +02:00
49fb860129
Minor: fixed printing of 'cost'.
2024-07-23 11:47:48 +02:00
69edc8e898
compute_product_price(): add new Products (CAR, BUS, CAMPER).
2024-07-23 11:45:34 +02:00
c153652b3d
compute_next_timestep(): allow some tolerance for first time-step
2024-07-16 16:50:11 +02:00
57ccbc150a
compute_duration_for_parking_ticket(): set calcState according to string
...
returned from tariff calculation.
2024-06-05 17:03:33 +02:00
8fa4335669
Minor: fixed typo.
2024-06-05 17:03:10 +02:00