diff --git a/library/src/calculate_price.cpp b/library/src/calculate_price.cpp index cbfb699..10ff1f5 100644 --- a/library/src/calculate_price.cpp +++ b/library/src/calculate_price.cpp @@ -211,8 +211,8 @@ int CALCULATE_LIBRARY_API compute_product_price(Configuration const *cfg, if (product.size() > 0) { if (productStart && productEnd) { - int pop_min_time = get_minimal_parkingtime(cfg); // in minutes - int pop_max_time = get_maximal_parkingtime(cfg); // in minutes + int pop_min_time = get_minimal_parkingtime(cfg, PERMIT_TYPE::TWENTY_FOUR_HOURS_TICKET); // in minutes + int pop_max_time = get_maximal_parkingtime(cfg, PERMIT_TYPE::TWENTY_FOUR_HOURS_TICKET); // in minutes if (pop_max_time >= pop_min_time) { *productStart = start; *productEnd = start.addSecs(pop_max_time*60);