GetCostFromDuration(): take into account that (for Kirchdorf and progressive tariff)
there is no carry over.
This commit is contained in:
parent
9ea2037eca
commit
696ce644ab
@ -525,14 +525,17 @@ double Calculator::GetCostFromDuration(Configuration* cfg,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (current.time() >= to) {
|
||||
if (carryOverNotSet) {
|
||||
return 0;
|
||||
} else {
|
||||
QDateTime const dt = start;
|
||||
start = start.addDays(1);
|
||||
start.setTime(QTime(0, 0, 0));
|
||||
|
||||
durationMinutesBrutto += dt.secsTo(start) / 60;
|
||||
current = start;
|
||||
}
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user