e70e9a8586 
					 
					
						
						
							
							Add TariffIncludes: the main tariff-file will include (load) other tariff-files.  
						
						 
						
						
						
						
					 
					
						2025-05-06 11:52:47 +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. 
						
						
					 
					
						2025-04-17 13:33:22 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						077c2334ca 
					 
					
						
						
							
							Restore pop_max_price in case it has been changed (for certain settings).  
						
						 
						
						
						
						
					 
					
						2025-04-17 13:09:53 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						d605af5c5a 
					 
					
						
						
							
							Check prepaidIf and carryOverIf for null and emptyness.  
						
						 
						
						
						
						
					 
					
						2025-04-16 11:32:20 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						c5900f9f2b 
					 
					
						
						
							
							Minor: extend debug output  
						
						 
						
						
						
						
					 
					
						2025-04-16 11:31:05 +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). 
						
						
					 
					
						2025-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. 
						
						
					 
					
						2025-04-02 15:28:46 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						d82a732a8d 
					 
					
						
						
							
							if end of parking time equals carry-over-end, then, if configured, go back to carry-over-start.  
						
						 
						
						
						
						
					 
					
						2025-04-01 14:26:21 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						99dbd7c194 
					 
					
						
						
							
							Minor: debug output.  
						
						 
						
						
						
						
					 
					
						2025-04-01 14:24:42 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						6a215d4cf9
	 
				 
					 
					
						
						
							
							Allow zone_nr > 999  
						
						 
						
						
						
						
					 
					
						2025-02-04 14:47:07 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						a3f4a742ce
	 
				 
					 
					
						
						
							
							Read zone_nr from system_data  
						
						 
						
						
						
						
					 
					
						2025-02-04 14:44:28 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						e6d8c04076 
					 
					
						
						
							
							Fix: for time change summer -> winter term. Compute minutes until midnight manually.  
						
						 
						
						
						
						
					 
					
						2024-10-30 15:56:58 +01: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. 
						
						
					 
					
						2024-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. 
						
						
					 
					
						2024-10-10 11:36:14 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						7e2f40a7b5 
					 
					
						
						
							
							Add assigment-operator (otherwise compilation error).  
						
						 
						
						
						
						
					 
					
						2024-10-10 11:33:33 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						44e2ce24a3 
					 
					
						
						
							
							Add helper computeMinutesUntilCarryOverEnd().  
						
						 
						
						... 
						
						
						
						Used in new tariff-calculator. Replace of previous wrong approach of
        using m_range.duration. 
						
						
					 
					
						2024-10-10 11:30:53 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						5a55ad6ef0 
					 
					
						
						
							
							ComputeDurationFromCost():  
						
						 
						
						... 
						
						
						
						brutto-time must be updated in case of an carry-over-section. 
						
						
					 
					
						2024-10-02 15:21:21 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						5a77958e8d 
					 
					
						
						
							
							getOutOfService():  
						
						 
						
						... 
						
						
						
						Check for special days (holidays) with out-of-service-time-ranges.
	Holidays have higher priority than usual days ("default"). 
						
						
					 
					
						2024-10-02 15:19:32 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						a1e7f4629a 
					 
					
						
						
							
							getService():  
						
						 
						
						... 
						
						
						
						Check for special days (holidays) with service-time-ranges.
	Holidays have higher priority than usual days ("default"). 
						
						
					 
					
						2024-10-02 15:18:16 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						efc2582c36 
					 
					
						
						
							
							getCarryOver():  
						
						 
						
						... 
						
						
						
						Check for special days (holidays) with carry-over-sections.
	Holidays have higher priority than usual days. 
						
						
					 
					
						2024-10-02 15:17:00 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						a72f5a5019 
					 
					
						
						
							
							getPrepaid():  
						
						 
						
						... 
						
						
						
						Check for special days (holidays) with prepaid sections.
	Holidays have higher priority than usual days. 
						
						
					 
					
						2024-10-02 15:15:19 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						28f0ea9fce 
					 
					
						
						
							
							Merge from kleipeda-experimental-snapshot-2024-09-27:  
						
						 
						
						... 
						
						
						
						started new implementation of tariff-calculator. 
						
						
					 
					
						2024-10-01 09:25:53 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						3109e82ef8 
					 
					
						
						
							
							If out-of-service, use start of out-of-service action as output-date.  
						
						 
						
						
						
						
					 
					
						2024-10-01 09:23:15 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						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  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						4f23ab3d68 
					 
					
						
						
							
							ComputeCostFromDuration():  
						
						 
						
						... 
						
						
						
						Add price when overpaid occurred. 
						
						
					 
					
						2024-09-30 16:53:25 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						acbc27cfb2 
					 
					
						
						
							
							ComputeDurationFromCost():  
						
						 
						
						... 
						
						
						
						If overapid or trunctae has been set, then truncated max. parking time
	to time-limit configured in tariff-file. 
						
						
					 
					
						2024-09-30 16:51:51 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						bcbe95d483 
					 
					
						
						
							
							Add hard-coded trauncate flag.  
						
						 
						
						
						
						
					 
					
						2024-09-30 16:51:02 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						e3bbca86d5 
					 
					
						
						
							
							Minor: changed parameter type to non-const.  
						
						 
						
						
						
						
					 
					
						2024-09-30 16:50:21 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						5868d3b510 
					 
					
						
						
							
							Introduce computational state  
						
						 
						
						
						
						
					 
					
						2024-09-30 16:46:36 +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  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						dbccdba9fe 
					 
					
						
						
							
							isParkingAllowedForWeekDay():  
						
						 
						
						... 
						
						
						
						Minor: adapt function call to changes parameter arity. 
						
						
					 
					
						2024-09-27 14:18:31 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						b035f4f887 
					 
					
						
						
							
							Calculator::GetDurationFromCost():  
						
						 
						
						... 
						
						
						
						Minor: move scope of some variables upward. 
						
						
					 
					
						2024-09-27 14:17:35 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						18f09fccb9 
					 
					
						
						
							
							GetDurationFromCost():  
						
						 
						
						... 
						
						
						
						Call ComputeDurationFromCost() of new tariff calculator for payment-method Unified. 
						
						
					 
					
						2024-09-27 14:10:02 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						1086e360e5 
					 
					
						
						
							
							Start of implementing new tariff calculator:  
						
						 
						
						... 
						
						
						
						Added serveral helper function for parsing tariff file:
	  * getPrepaid()
	  * getCarryOver()
          * getService()
          * getOutOfService()
	Added main functions of tariff calculator:
	  * ComputeDurationFromCost()
	  * ComputeCostFromDuration() 
						
						
					 
					
						2024-09-27 14:04:39 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						ada7bebd90 
					 
					
						
						
							
							Minor: Add headers.  
						
						 
						
						
						
						
					 
					
						2024-09-27 13:57:30 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						2b9ea67ef5 
					 
					
						
						
							
							Added function to implement new tariff-calculator:  
						
						 
						
						... 
						
						
						
						std::pair<CalcState, QDateTime> ComputeDurationFromCost(Configuration const* cfg, QDateTime const &startDatetimePassed,  int cost);
std::pair<CalcState, std::optional<int>> ComputeCostFromDuration(Configuration const* cfg, QDateTime const &startDatetime, QDateTime &endDatetime, int nettoParkingTime); 
						
						
					 
					
						2024-09-27 13:48:30 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						d117328bed 
					 
					
						
						
							
							Minor: removed default parameter in constructor  
						
						 
						
						
						
						
					 
					
						2024-09-27 13:47:26 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						fd04531474 
					 
					
						
						
							
							Added payment <unified> payment-methode  
						
						 
						
						
						
						
					 
					
						2024-09-27 13:45:45 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						5749fa422e 
					 
					
						
						
							
							Added structures for parsing of tariff05 in bad neuenahr  
						
						 
						
						
						
						
					 
					
						2024-09-27 13:45:04 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						1347f1f208 
					 
					
						
						
							
							Added parsing for tariff05.json (bad neuenarh (249))  
						
						 
						
						
						
						
					 
					
						2024-09-27 13:44:01 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						576c3fefdd 
					 
					
						
						
							
							Added PaymentMethod::Unified  
						
						 
						
						
						
						
					 
					
						2024-09-27 13:42:44 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						515dfaf35c 
					 
					
						
						
							
							reprogrammed to use ATBTime class  
						
						 
						
						
						
						
					 
					
						2024-09-27 13:41:30 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						0ab833709c 
					 
					
						
						
							
							Added struct ATBTariffCarryOver  
						
						 
						
						
						
						
					 
					
						2024-09-27 13:40:18 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						8e4f47c7b6 
					 
					
						
						
							
							Added struct ATBTariffPrepaid  
						
						 
						
						
						
						
					 
					
						2024-09-27 13:39:35 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						bc9645f1fa 
					 
					
						
						
							
							Minor: removed "pragma once" compiler flag  
						
						 
						
						
						
						
					 
					
						2024-09-27 13:38:39 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						713b483918 
					 
					
						
						
							
							Added/fixed several functions. final testing needed.  
						
						 
						
						
						
						
					 
					
						2024-09-27 13:37:54 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						3c7af1cb32 
					 
					
						
						
							
							Minor: Added tariff_service and tariff_out_of_service  
						
						 
						
						
						
						
					 
					
						2024-09-27 13:35:54 +02:00