compute_duration_for_parking_ticket():

Fix: pass PERMIT_TYPE explicitly to correct arity of GetDurationFromCost().
This commit is contained in:
Gerhard Hoffmann 2024-07-29 11:25:12 +02:00
parent f1493f417f
commit 3cd02296b0

View File

@ -797,7 +797,7 @@ CalcState CALCULATE_LIBRARY_API compute_duration_for_parking_ticket(
tariff, tariff,
tariff->getPaymentOptions().pop_payment_method_id, tariff->getPaymentOptions().pop_payment_method_id,
cs.toLocal8Bit().constData(), cs.toLocal8Bit().constData(),
price, false, true).c_str(); price, permitType, false, true).c_str();
if (endTime == CalcState::SUCCESS) { if (endTime == CalcState::SUCCESS) {
calcState.setDesc(QString("SUCCESS")); calcState.setDesc(QString("SUCCESS"));