Added: uint32_t getDailyTicketCardPrice(Configuration const *cfg, PaymentMethod methodId);
This commit is contained in:
parent
bdaea1106c
commit
e121cef17e
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user