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;
|
break;
|
||||||
case PERMIT_TYPE::DAY_TICKET_PKW:
|
case PERMIT_TYPE::DAY_TICKET_PKW:
|
||||||
break;
|
break;
|
||||||
case PERMIT_TYPE::SHORT_TERM_PARKING_BUS:
|
case PERMIT_TYPE::SHORT_TERM_PARKING_BUS: {
|
||||||
break;
|
std::optional<ATBPaymentOption> po = cfg->getPaymentOptionForKey(permitType);
|
||||||
case PERMIT_TYPE::SHORT_TERM_PARKING_PKW:
|
if (po.has_value()) {
|
||||||
break;
|
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:
|
case PERMIT_TYPE::SHORT_TERM_PARKING_CAMPER:
|
||||||
break;
|
break;
|
||||||
default: ;
|
default: ;
|
||||||
|
Loading…
Reference in New Issue
Block a user