get_maximal_parkingprice():
Fetch maxPrice directly instead of using utility function.
This commit is contained in:
parent
e38a1bfe12
commit
d21f69cb9b
@ -337,7 +337,9 @@ int CALCULATE_LIBRARY_API get_maximal_parkingprice(Configuration *cfg,
|
|||||||
switch(permitType) {
|
switch(permitType) {
|
||||||
case PERMIT_TYPE::SHORT_TERM_PARKING: { // e.g. szeged (customer_281)
|
case PERMIT_TYPE::SHORT_TERM_PARKING: { // e.g. szeged (customer_281)
|
||||||
if (paymentMethodId == PaymentMethod::Progressive || paymentMethodId == PaymentMethod::Steps) {
|
if (paymentMethodId == PaymentMethod::Progressive || paymentMethodId == PaymentMethod::Steps) {
|
||||||
maxPrice = Utilities::getMaximalParkingPrice(cfg, paymentMethodId);
|
//maxPrice = Utilities::getMaximalParkingPrice(cfg, paymentMethodId);
|
||||||
|
ATBPaymentOption const &po = cfg->getPaymentOptions(paymentOptionIndex);
|
||||||
|
maxPrice = po.pop_max_price; // maxTime is given in minutes
|
||||||
} else { // PaymentMethod::Linear -> e.g. szeged
|
} else { // PaymentMethod::Linear -> e.g. szeged
|
||||||
int const key = cfg->getPaymentOptions(paymentOptionIndex).pop_id;
|
int const key = cfg->getPaymentOptions(paymentOptionIndex).pop_id;
|
||||||
int const maxTime = cfg->getPaymentOptions(paymentOptionIndex).pop_max_time; // maxTime is given in minutes
|
int const maxTime = cfg->getPaymentOptions(paymentOptionIndex).pop_max_time; // maxTime is given in minutes
|
||||||
|
Loading…
Reference in New Issue
Block a user