get_maximal_parkingprice():
implement for SHORT_TERM_PARKING_BUS and SHORT_TERM_PARKING_PKW.
This commit is contained in:
parent
356e3be178
commit
f1493f417f
@ -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: ;
|
||||
|
Loading…
Reference in New Issue
Block a user