From 57d6b85f5241358216dc933c720c9d71774a2d42 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Mon, 8 Apr 2024 13:57:40 +0200 Subject: [PATCH] get_maximal_parking_price(): add handling for PaymentMethod::Steps. --- library/src/calculate_price.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/calculate_price.cpp b/library/src/calculate_price.cpp index 2df4053..038e399 100644 --- a/library/src/calculate_price.cpp +++ b/library/src/calculate_price.cpp @@ -125,7 +125,7 @@ int CALCULATE_LIBRARY_API get_maximal_parkingprice(Configuration *cfg, PERMIT_TY switch(permitType) { case PERMIT_TYPE::SHORT_TERM_PARKING: { // e.g. szeged (customer_281) - if (paymentMethodId == PaymentMethod::Progressive) { + if (paymentMethodId == PaymentMethod::Progressive || paymentMethodId == PaymentMethod::Steps) { maxPrice = Utilities::getMaximalParkingPrice(cfg, paymentMethodId); } else { // PaymentMethod::Linear -> e.g. szeged int const key = cfg->getPaymentOptions().pop_id;