Compute maxPrice directly (without using something from Utilities).
This commit is contained in:
parent
19032349ae
commit
449fb163bd
@ -327,7 +327,8 @@ int CALCULATE_LIBRARY_API get_maximal_parkingprice(Configuration *cfg,
|
||||
switch(permitType) {
|
||||
case PERMIT_TYPE::SHORT_TERM_PARKING: { // e.g. szeged (customer_281)
|
||||
if (paymentMethodId == PaymentMethod::Progressive || paymentMethodId == PaymentMethod::Steps) {
|
||||
maxPrice = Utilities::getMaximalParkingPrice(cfg, paymentMethodId);
|
||||
paymentOptionIndex = cfg->getPaymentOptionIndex(permitType);
|
||||
maxPrice = cfg->getPaymentOptions(paymentOptionIndex).pop_max_price;
|
||||
} else { // PaymentMethod::Linear -> e.g. szeged
|
||||
int const key = cfg->getPaymentOptions(paymentOptionIndex).pop_id;
|
||||
int const maxTime = cfg->getPaymentOptions(paymentOptionIndex).pop_max_time; // maxTime is given in minutes
|
||||
|
Loading…
Reference in New Issue
Block a user