Fixed compute_next_timestep() for degressive tariff:
compute_next_timestep() was actually never called for such a tariff.
This commit is contained in:
		@@ -508,10 +508,12 @@ int CALCULATE_LIBRARY_API compute_next_timestep(parking_tariff_t *tariff, int cu
 | 
			
		||||
    // without given YearPeriod, SpecialDays and SpecialDaysWorktime
 | 
			
		||||
    if ((paymentMethodId == PaymentMethod::Steps) ||
 | 
			
		||||
        // progressive tariff: e.g. Neuhauser, Kirchdorf (743)
 | 
			
		||||
        (paymentMethodId == PaymentMethod::Progressive))
 | 
			
		||||
        // (paymentMethodId == PaymentMethod::Degressive)) degressive tariff: e.g. Fuchs Technik (500)
 | 
			
		||||
        (paymentMethodId == PaymentMethod::Progressive) ||
 | 
			
		||||
        // degressive tariff: e.g. Fuchs Technik (500)
 | 
			
		||||
        (paymentMethodId == PaymentMethod::Degressive))
 | 
			
		||||
    {
 | 
			
		||||
        QList<int> &stepList = Calculator::GetInstance().GetTimeSteps(tariff, paymentOptionIndex);
 | 
			
		||||
 | 
			
		||||
        int const size = stepList.size();
 | 
			
		||||
        if (size == 0) {
 | 
			
		||||
            qCritical() << "compute_next_timestep() *ERROR empty step-list*";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user