GetCostFromDuration(): set endtime to start in case cost==0.

This commit is contained in:
Gerhard Hoffmann 2024-02-21 11:13:53 +01:00
parent ce61e5d3b2
commit 81d515eb7f

View File

@ -548,6 +548,7 @@ double Calculator::GetCostFromDuration(Configuration* cfg,
if (current.time() >= to) {
if (carryOverNotSet) {
end_datetime = start;
return 0;
} else {
QDateTime const dt = start;