51a58bfa15
Minor: Add VERSION variable
2024-01-18 15:03:24 +01:00
ff314c810f
Add TimeBase to configuration object.
2024-01-18 15:00:42 +01:00
80fa2fe0e2
Extend computation of time steps in GetTimeSteps() for the case
...
of dynamic time steps (e.g. for Neuhauser, Galtuer (745)).
2024-01-18 14:57:04 +01:00
89e0f2137b
Add handling of pun_duration_min and pun_duration_max
2024-01-18 14:56:20 +01:00
f68d8816c0
Add handling of pop_carry_over_time_range_id and pop_time_step_config.
2024-01-18 14:55:16 +01:00
7ce93ddd7a
Extend handling of TimeRangeType.
2024-01-18 14:53:57 +01:00
7f8ed9165d
Add handling for TimeStepConfig.
2024-01-18 14:53:01 +01:00
0b901954aa
Add members m_start and m_timeStepCompensation (used for Neuhauser, Galtuer (745) at the moment).
...
Add several setters/getters.
2024-01-18 14:49:56 +01:00
9f4b10bb9a
Add and fill
...
multimap<int, ATBTimeRange> TimeRange;
multimap<int, ATBTimeStepConfig> TimeStepConfig;
when parsing json-file.
2024-01-18 14:43:08 +01:00
2f939d607d
Add
...
include/mobilisis/tariff_timebase.h
include/mobilisis/tariff_timestep_config.h
2024-01-18 14:41:54 +01:00
283e970be4
Add pun_duration_min and pun_duration_max
2024-01-18 14:41:12 +01:00
e14edea07f
Add TimeRangeType and TimeStepConfigType.
2024-01-18 14:39:57 +01:00
e520965c6b
Add pop_carry_over_time_range_id and pop_time_step_config
2024-01-18 14:38:13 +01:00
6a781f0d3b
Minor: add debug output
2024-01-18 14:37:13 +01:00
c357cbbbe0
Add descrption file for tariff time step config
2024-01-18 14:36:28 +01:00
44a94b7007
Minor: add comment
2024-01-16 11:56:54 +01:00
7c13d8b88c
Added pun_duration_min and pun_duration_max in case we dont have to pay for a full time range
2024-01-16 11:56:12 +01:00
f1f5ac8900
Add operator << for printing
2023-12-15 13:28:34 +01:00
ddded411aa
Add operator << for printing
2023-12-15 13:28:19 +01:00
96587229e2
Add operator << for printing
2023-12-15 13:28:04 +01:00
3d3794ea4e
Add multimap for dailly ticket.w
2023-12-15 13:27:02 +01:00
bb83ae3074
Fix: add a 'break' in swich/case.
2023-12-15 13:25:09 +01:00
c598014dd0
Add parsing of
...
ATBDailyTicket DailyTicket;
ATBTimeBase TimeBase;
ATBCustomer Customer;
ATBTimeRange TimeRange;
2023-12-15 13:24:29 +01:00
ad534eef09
Add 4 new data type for IdentifyJsonMember().
2023-12-15 13:22:49 +01:00
5ee73bf804
IdentifyJsonMember(): add 4 new data types:
...
DailyTicket, TimeBase, Customer and TimeRange.
2023-12-15 13:20:42 +01:00
ea2dfa144f
Add new menber types: dailly ticket, timebase, time range and customer.
2023-12-12 17:56:26 +01:00
f56979a61a
Minor: rename to ATBCustomer.
2023-12-12 17:55:44 +01:00
cc07b8f20e
Minor: rename to ATBTimeBase
2023-12-12 17:55:06 +01:00
81459f7ab4
Minor: remove 'pragma onc'
2023-12-12 17:50:23 +01:00
08e89df5a5
Include 3 new header files.
2023-12-12 12:14:34 +01:00
d6324f03a8
Add drafts for 3 new haeder files.
2023-12-12 12:14:14 +01:00
2b3ee3f384
Renamed again.
2023-12-12 12:11:32 +01:00
08f8f3a9fd
""
2023-12-12 12:10:55 +01:00
a80bc7294a
Removed tartiff_csutomer.
2023-12-12 12:00:04 +01:00
3a0baf266b
Add first draft.
2023-12-12 11:59:35 +01:00
31193336cf
Define daily ticket structure.
2023-12-12 11:53:22 +01:00
4fbc2c502b
Header for definition of daily ticket.
2023-12-12 11:36:58 +01:00
8d7d175b51
GetDailyTicketDuration():
...
replace ZellersAlgorithm by qts build in method dayOfWeek().
2023-12-12 11:34:04 +01:00
ebb5bad7c5
Minor: replace call to LOG_ERROR() using qCritical().
2023-12-12 11:30:30 +01:00
b122206a94
Minor add some json files under OTHER_FILES for documentation.
2023-12-12 11:08:10 +01:00
3006e64b37
private_GetDurationFromCost():
...
set static variables using helpers moved to namespace Utilities.
2023-12-12 10:58:08 +01:00
c8218bd7af
private_GetDurationFromCost():
...
remove superfluous check if there are special days listed in
json-tariff-file.
2023-12-12 10:56:58 +01:00
ba3dfcd3d6
Minor: private_GetCostFromDuration():
...
define static variables using helpers moved to namespace Utilities.
2023-12-12 10:55:19 +01:00
c51d350618
Minor: Moved
...
getMinimalParkingTime(), getMaximalParkingTime(), getMinimalParkingPrice()
computeWeekDaysPrice() and computeWeekDaysDurationUnit() to Utilities
namespace.
2023-12-12 10:53:10 +01:00
a95a39a557
GetCostFromDuration():
...
1: Get payment method from tariff file.
2: Use tariffIs24_7() helper (Tariff for Schoenau is such a case)
3: Add new code for neuhauser/linsinger maschinenbau:
Very similar to Schoenau, but here there are extra operating times
6.00-18.00 during the week, 6-12 on Saturday.
Check if the current time is inside such time ranges and return
associated price.
2023-12-12 10:52:16 +01:00
67b12f4b33
Private GetCostFromDuration() and GetCostFromDuration() helpers:
...
Use pyament method id (=4) as condition for if(...).
The other condition (tariffIs24_7()) is used in calling functions.
2023-12-12 10:49:51 +01:00
60002404da
GetDurationFromCost():
...
1: Get payment method from tariff file.
2: Use tariffIs24_7() helper (Tariff for Schoenau is such a case)
3: Add new code for neuhauser/linsinger maschinenbau:
Very similar to Schoenau, but here there are extra operating times
6.00-18.00 during the week, 6-12 on Saturday.
Check if the current time is inside such time ranges and return
associated price.
2023-12-12 10:43:16 +01:00
d4e03a51dd
Moved
...
uint32_t computeWeekDaysPrice(Configuration const *cfg, PaymentMethod id) const;
double computeWeekDaysDurationUnit(Configuration const *cfg, PaymentMethod id) const;
to namespace Utilities.
2023-12-12 10:41:21 +01:00
723b3530cc
Added helpers GetPriceForStep() and GetStepForPrice() to make source
...
more readable.
2023-12-12 10:40:20 +01:00
63f508fb95
Moved
...
PaymentMethod getPaymentMethodId(Configuration const *cfg);
int getMinimalParkingTime(Configuration const *cfg, PaymentMethod methodId);
int getMaximalParkingTime(Configuration const *cfg, PaymentMethod methodId);
uint32_t getMinimalParkingPrice(Configuration const *cfg, PaymentMethod methodId);
to namespace Utilities.
2023-12-12 10:38:31 +01:00