GetCostFromDuration(): set endtime to start in case cost==0.
This commit is contained in:
parent
ce61e5d3b2
commit
81d515eb7f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user