Fetch pop_accumulate_durations form tariff-file (to decide if durrations

have to be summed up).
This commit is contained in:
Gerhard Hoffmann 2024-08-13 14:57:12 +02:00
parent 75c98c18ad
commit 82ca274c45

View File

@ -492,12 +492,11 @@ std::string Calculator::GetDurationFromCost(Configuration* cfg,
#endif
int const pop_accumulate_prices = cfg->getPaymentOptions(paymentOptionIndex).pop_accumulate_prices;
// int const pop_accumulate_durations = cfg->getPaymentOptions(paymentOptionIndex).pop_accumulate_durations;
int const pop_accumulate_durations = cfg->getPaymentOptions(paymentOptionIndex).pop_accumulate_durations;
int price = 0;
int new_price = 0;
int durationInSecs = 0;
uint32_t duration_previous = 0;
bool found = false;
for (auto[itr, rangeEnd] = cfg->PaymentRate.equal_range(pop_id); itr != rangeEnd; ++itr) {
int const pra_price = itr->second.pra_price;