Fetch pop_accumulate_durations form tariff-file (to decide if durrations
have to be summed up).
This commit is contained in:
parent
75c98c18ad
commit
82ca274c45
@ -492,12 +492,11 @@ std::string Calculator::GetDurationFromCost(Configuration* cfg,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
int const pop_accumulate_prices = cfg->getPaymentOptions(paymentOptionIndex).pop_accumulate_prices;
|
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 price = 0;
|
||||||
int new_price = 0;
|
int new_price = 0;
|
||||||
int durationInSecs = 0;
|
int durationInSecs = 0;
|
||||||
uint32_t duration_previous = 0;
|
uint32_t duration_previous = 0;
|
||||||
bool found = false;
|
|
||||||
|
|
||||||
for (auto[itr, rangeEnd] = cfg->PaymentRate.equal_range(pop_id); itr != rangeEnd; ++itr) {
|
for (auto[itr, rangeEnd] = cfg->PaymentRate.equal_range(pop_id); itr != rangeEnd; ++itr) {
|
||||||
int const pra_price = itr->second.pra_price;
|
int const pra_price = itr->second.pra_price;
|
||||||
|
Loading…
Reference in New Issue
Block a user