Compute end_parking_time using "netto_parking_time", which is the

current timestep.
This commit is contained in:
Gerhard Hoffmann 2024-04-25 15:41:52 +02:00
parent b596086245
commit c7623429d9

View File

@ -487,6 +487,7 @@ CalcState CALCULATE_LIBRARY_API compute_price_for_parking_ticket(
return calcState;
}
cost = Calculator::GetInstance().GetCostFromDuration(tariff, start_parking_time, netto_parking_time, paymentOptionIndex);
end_parking_time = start_parking_time.addSecs(netto_parking_time*60);
} else {
cost = Calculator::GetInstance().GetCostFromDuration(
tariff,