Fetch pop_accumulate_durations form tariff-file (to decide if durrations
have to be summed up).
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user