From 56fc95e33cfdd05c9d97bf7034f4a951a6238ac5 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 22 Feb 2024 09:43:04 +0100 Subject: [PATCH] GetDurationFromCost(): reverted, as there is a new default parameter (prepaid) in compute_price_for_parming_ticket(). --- library/src/calculator_functions.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/library/src/calculator_functions.cpp b/library/src/calculator_functions.cpp index 551d737..1962106 100644 --- a/library/src/calculator_functions.cpp +++ b/library/src/calculator_functions.cpp @@ -499,19 +499,8 @@ double Calculator::GetCostFromDuration(Configuration* cfg, } else { // it might be that in such a case even prepaid ("vorkauf") // is not allowed at any moment - // added e.g. for neuhauser-linsinger maschinenbau (741): - // the buying of food stamps ("essensmarken") is not allowed - // at any moment - CalcState cs = isParkingAllowed(cfg, start_datetime); - if (cs) { - end_datetime = start_datetime.addSecs(durationMinutes*60); - double cost = GetCostFromDuration(cfg, start_datetime, end_datetime); - end_datetime = start_datetime; - end_datetime.setTime(cs.getAllowedTimeRange().getTimeUntil()); - return cost; - } } - + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" << "NOT YET IMPLEMENTED"; end_datetime = QDateTime(); return 0; }