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