Added: uint32_t getDailyTicketCardPrice(Configuration const *cfg, PaymentMethod methodId);

This commit is contained in:
Gerhard Hoffmann 2024-06-04 11:26:36 +02:00
parent bdaea1106c
commit e121cef17e
2 changed files with 5 additions and 0 deletions

View File

@ -100,4 +100,5 @@ namespace Utilities {
uint32_t computeWeekDaysPrice(Configuration const *cfg, PaymentMethod id);
double computeWeekDaysDurationUnit(Configuration const *cfg, PaymentMethod id);
QStringList dumpBusinessHours(uint64_t businessHours);
uint32_t getDailyTicketCardPrice(Configuration const *cfg, PaymentMethod methodId);
}

View File

@ -406,6 +406,10 @@ uint32_t Utilities::getMaximalParkingPrice(Configuration const *cfg, PaymentMeth
return std::max((int)cfg->PaymentOption.find(methodId)->second.pop_max_price, 0);
}
uint32_t Utilities::getDailyTicketCardPrice(Configuration const *cfg, PaymentMethod methodId) {
return std::max((int)cfg->PaymentOption.find(methodId)->second.pop_daily_card_price, 0);
}
uint32_t Utilities::getTimeRangeStep(Configuration const *cfg, int step, PaymentMethod methodId) {
if (methodId == PaymentMethod::Progressive) {
Configuration::TimeRangeType::const_iterator it = cfg->TimeRange.find(step);