get_minimal_parkingtime():

Call Calculator::GetInstance().GetTimeSteps() to initialize
	time-step-list. This internally recomputes the minimal parking
	time (until midnight) which cannot be configured (as static value)
	in tariff-file.
This commit is contained in:
Gerhard Hoffmann 2024-09-12 11:11:25 +02:00
parent 48fccafe76
commit 1d8dfcfa22

View File

@ -36,6 +36,8 @@ int CALCULATE_LIBRARY_API get_minimal_parkingtime(Configuration const *cfg,
switch(permitType) {
case PERMIT_TYPE::SHORT_TERM_PARKING: { // e.g. szeged (customer_281)
QList<int> const tsteps = Calculator::GetInstance().GetTimeSteps((Configuration *)cfg, paymentOptionIndex);
Q_UNUSED(tsteps);
minTime = cfg->getPaymentOptions(paymentOptionIndex).pop_min_time;
} break;
case PERMIT_TYPE::DAY_TICKET_ADULT: {