diff --git a/library/src/calculator_functions.cpp b/library/src/calculator_functions.cpp index 767bf54..edf4f71 100644 --- a/library/src/calculator_functions.cpp +++ b/library/src/calculator_functions.cpp @@ -619,6 +619,10 @@ CalcState Calculator::isParkingAllowed(Configuration const *cfg, QDateTime const if (paymentMethodId == PaymentMethod::Steps) { int const weekdayId = start.date().dayOfWeek(); BusinessHours businessHours = Utilities::getBusinessHours(cfg, paymentMethodId); + if (businessHours == BusinessHours::NoRestriction_24_7) { + return CalcState(CalcState::State::SUCCESS, "PARKING_ALLOWED", + QTime(0, 0, 0), QTime(23, 59, 59)); + } else if (businessHours == BusinessHours::OnlyWeekDays) { if (weekdayId != (int)Qt::Saturday && weekdayId != (int)Qt::Sunday) { // e.g. Neuhauser, Linsinger Maschinenbau (741) if (cfg->WeekDaysWorktime.count(weekdayId) > 0) {