Use new getPaymentOptions interface

This commit is contained in:
Siegfried Siegert 2023-11-23 08:42:35 +01:00
parent 3a2e521345
commit ccbf07a654
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -127,13 +127,13 @@ std::string Calculator::GetDurationFromCost(Configuration* cfg,
//Get min and max time defined in JSON
double minMin = 0;
minMin = cfg->PaymentOption.find(payment_option)->second.pop_min_time;
minMin = cfg->getPaymentOptions().pop_min_time;
double maxMin = 0;
maxMin = cfg->PaymentOption.find(payment_option)->second.pop_max_time;
maxMin = cfg->getPaymentOptions().pop_max_time;
double min_price = 0;
min_price = cfg->PaymentOption.find(payment_option)->second.pop_min_price;
min_price = cfg->getPaymentOptions().pop_min_price;
if(price < min_price)
{