GetDurationFromCost():
Set durationInSecs in case 'pop_accumulate_prices' is not configured in tariff file.
This commit is contained in:
parent
138221759b
commit
4bce854d77
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user