Some testing added
This commit is contained in:
parent
dffc6e2a03
commit
f53e9ceaae
@ -1433,10 +1433,6 @@ int main() {
|
||||
|
||||
if (isParsed) {
|
||||
|
||||
qCritical() << "Parsed";
|
||||
|
||||
exit(0);
|
||||
|
||||
// test library functions
|
||||
|
||||
if (zone == 1) {
|
||||
@ -1586,7 +1582,8 @@ int main() {
|
||||
fail = false;
|
||||
break;
|
||||
case 1:
|
||||
start = QDateTime(QDate(2024, 10, 3), QTime(17, 0, 0)); // sunday
|
||||
//start = QDateTime(QDate(2024, 10, 3), QTime(17, 0, 0)); // sunday
|
||||
start = QDateTime(QDate(2024, 9, 8), QTime(16, 2, 0)); // sunday
|
||||
fail = false;
|
||||
break;
|
||||
case 2:
|
||||
@ -1631,7 +1628,7 @@ int main() {
|
||||
<< "START" << start.toString(Qt::ISODate)
|
||||
<< "<duration" << *step;
|
||||
|
||||
#if 0
|
||||
#if 1
|
||||
if ((cs = compute_price_for_parking_ticket(&cfg, s, *step, end, &price,
|
||||
PermitType(PERMIT_TYPE::SHORT_TERM_PARKING)))) {
|
||||
cost = price.netto;
|
||||
@ -1646,7 +1643,7 @@ int main() {
|
||||
}
|
||||
}
|
||||
#else
|
||||
cost = 210;
|
||||
cost = 200;
|
||||
qCritical() << "START" << start.toString(Qt::ISODate) << "cost" << cost;
|
||||
|
||||
cs = compute_duration_for_parking_ticket(&cfg, start, cost, end,
|
||||
|
@ -30,7 +30,11 @@ SOURCES += main.cpp
|
||||
# HEADERS +=
|
||||
|
||||
OTHER_FILES += \
|
||||
/opt/ptu5/opt/customer_249/etc/psa_tariff/tariff02.json
|
||||
/opt/ptu5/opt/customer_335/etc/psa_tariff/tariff01.json \
|
||||
/opt/ptu5/opt/customer_335/etc/psa_tariff/tariff02.json \
|
||||
/opt/ptu5/opt/customer_249/etc/psa_tariff/tariff01.json \
|
||||
/opt/ptu5/opt/customer_249/etc/psa_tariff/tariff02.json \
|
||||
/opt/ptu5/opt/customer_249/etc/psa_tariff/tariff03.json
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user