GetDurationFromCost():

Set durationInSecs in case 'pop_accumulate_prices' is not configured
        in tariff file.
This commit is contained in:
Gerhard Hoffmann 2024-08-01 16:44:06 +02:00
parent 138221759b
commit 4bce854d77

View File

@ -427,6 +427,10 @@ std::string Calculator::GetDurationFromCost(Configuration* cfg,
//qCritical() << DBG_HEADER << "XXXXXXXXXXXXXXXXXXXXX" << d;
return d.toString(Qt::ISODate).toStdString();
}
} else {
durationInSecs = cfg->Duration.find(durationId)->second.pun_duration * 60;
//qCritical() << DBG_HEADER << "DURATION-SECS" << durationInSecs;
//qCritical() << DBG_HEADER << "DURATION-MINS" << durationInSecs / 60;
}
if ((double)price == cost) {