GetDurationFromCost(): reverted, as there is a new default parameter (prepaid)

in compute_price_for_parming_ticket().
This commit is contained in:
Gerhard Hoffmann 2024-02-22 09:43:04 +01:00
parent c0f81f174a
commit 56fc95e33c

View File

@ -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;
}