compute_price_for_parking_ticket():

Use (netto_parking_time >= minutesUntilCarryOver) instead of
        (netto_parking_time > minutesUntilCarryOver), to correctly use interval
    limit.
This commit is contained in:
Gerhard Hoffmann 2024-08-12 09:19:20 +02:00
parent 41fc924a7c
commit eafbfd60c3

View File

@ -818,7 +818,7 @@ CalcState CALCULATE_LIBRARY_API compute_price_for_parking_ticket(
// handle carry over
int minutesUntilCarryOver = effectiveStartTime.time().secsTo(carryOverStart) / 60;
if (netto_parking_time > minutesUntilCarryOver) {
if (netto_parking_time >= minutesUntilCarryOver) {
int const rest = netto_parking_time - minutesUntilCarryOver;
QDateTime s(effectiveStartTime);
s = s.addSecs(minutesUntilCarryOver * 60);