Only check for prepaid == never.

This commit is contained in:
Gerhard Hoffmann 2024-07-24 12:23:15 +02:00
parent a6922976bf
commit e891bfc5de

View File

@ -1196,7 +1196,7 @@ std::optional<QDateTime> Configuration::prepaidStart(QDateTime const &start, int
if (prepaid_option.has_value()) {
ATBPrepaid prepaid = prepaid_option.value();
if (prepaid.anytime == false && prepaid.never == false) {
if (prepaid.never == false) {
// start: 22:00, end: 08:00
QTime prepaidStart = TariffPrepaidOptions.find(prepaid_option_id)->second.static_start;
QTime prepaidEnd = TariffPrepaidOptions.find(prepaid_option_id)->second.static_end;