Minor fixes with +/- 1 minute offset.
This commit is contained in:
parent
ef66c1f0c0
commit
2599513ef9
@ -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);
|
return GetDurationFromCost(cfg, payment_option, inputDate.toString(Qt::ISODate).toStdString().c_str(), money_left ,true, prepaid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(money_left > 1)
|
||||||
inputDate = inputDate.addSecs(60);
|
inputDate = inputDate.addSecs(60);
|
||||||
|
|
||||||
if(price_per_unit > 0) total_duration_min +=1;
|
if(price_per_unit > 0) total_duration_min +=1;
|
||||||
money_left -= price_per_unit;
|
money_left -= price_per_unit;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user