get_maximal_parkingprice():

implement for SHORT_TERM_PARKING_BUS and SHORT_TERM_PARKING_PKW.
This commit is contained in:
Gerhard Hoffmann 2024-07-29 11:24:05 +02:00
parent 356e3be178
commit f1493f417f

View File

@ -315,10 +315,20 @@ int CALCULATE_LIBRARY_API get_maximal_parkingprice(Configuration *cfg,
break;
case PERMIT_TYPE::DAY_TICKET_PKW:
break;
case PERMIT_TYPE::SHORT_TERM_PARKING_BUS:
break;
case PERMIT_TYPE::SHORT_TERM_PARKING_PKW:
break;
case PERMIT_TYPE::SHORT_TERM_PARKING_BUS: {
std::optional<ATBPaymentOption> po = cfg->getPaymentOptionForKey(permitType);
if (po.has_value()) {
ATBPaymentOption option = po.value();
return option.pop_max_price;
}
} break;
case PERMIT_TYPE::SHORT_TERM_PARKING_PKW: {
std::optional<ATBPaymentOption> po = cfg->getPaymentOptionForKey(permitType);
if (po.has_value()) {
ATBPaymentOption option = po.value();
return option.pop_max_price;
}
} break;
case PERMIT_TYPE::SHORT_TERM_PARKING_CAMPER:
break;
default: ;