From ce61e5d3b2d850d1cf4badf9ab0730ceb3c18d20 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Wed, 21 Feb 2024 11:11:09 +0100 Subject: [PATCH] compute_next_timestep(): use fpr PaymentMenthod::Progressive same code as for PaymentMethod::Steps, as GetTimeSteps() inside the Calculator class has been adapted accordingly. --- library/src/calculate_price.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/src/calculate_price.cpp b/library/src/calculate_price.cpp index 54f965c..30b8c9a 100644 --- a/library/src/calculate_price.cpp +++ b/library/src/calculate_price.cpp @@ -222,7 +222,9 @@ int CALCULATE_LIBRARY_API compute_next_timestep(parking_tariff_t *tariff, int cu // use tariff with structure as for instance Schnau, Koenigsee: // without given YearPeriod, SpecialDays and SpecialDaysWorktime - if (paymentMethodId == PaymentMethod::Steps) + if ((paymentMethodId == PaymentMethod::Steps) || + // progressive tariff: e.g. Neuhauser, Kirchdorf (743) + (paymentMethodId == PaymentMethod::Progressive)) { const QList stepList = Calculator::GetInstance().GetTimeSteps(tariff); qCritical() << " compute_next_timestep() timeSteps:" << stepList;