Minor fixes with +/- 1 minute offset.

This commit is contained in:
Moran Rod 2023-05-12 12:40:25 +02:00
parent ef66c1f0c0
commit 2599513ef9

View File

@ -204,7 +204,9 @@ std::string Calculator::GetDurationFromCost(Configuration* cfg,
return GetDurationFromCost(cfg, payment_option, inputDate.toString(Qt::ISODate).toStdString().c_str(), money_left ,true, prepaid);
}
if(money_left > 1)
inputDate = inputDate.addSecs(60);
if(price_per_unit > 0) total_duration_min +=1;
money_left -= price_per_unit;