compute_next_timestep(): use fpr PaymentMenthod::Progressive
same code as for PaymentMethod::Steps, as GetTimeSteps() inside the Calculator class has been adapted accordingly.
This commit is contained in:
parent
b6a0f5e8af
commit
ce61e5d3b2
@ -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:
|
// use tariff with structure as for instance Schnau, Koenigsee:
|
||||||
// without given YearPeriod, SpecialDays and SpecialDaysWorktime
|
// 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<int> stepList = Calculator::GetInstance().GetTimeSteps(tariff);
|
const QList<int> stepList = Calculator::GetInstance().GetTimeSteps(tariff);
|
||||||
qCritical() << " compute_next_timestep() timeSteps:" << stepList;
|
qCritical() << " compute_next_timestep() timeSteps:" << stepList;
|
||||||
|
Loading…
Reference in New Issue
Block a user