2023-12-12 11:53:22 +01:00
|
|
|
#ifndef TARIFF_DAILY_TICKET_H_INCLUDED
|
|
|
|
#define TARIFF_DAILY_TICKET_H_INCLUDED
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
#include <QDateTime>
|
|
|
|
#include <QVector>
|
|
|
|
|
|
|
|
struct DailyTicket {
|
|
|
|
DailyTicket() = default;
|
|
|
|
|
|
|
|
int daily_ticket_payment_option_id;
|
|
|
|
int daily_ticket_unit_id;
|
|
|
|
double daily_ticket_price;
|
|
|
|
|
2023-12-12 12:14:14 +01:00
|
|
|
int daily_ticket_tbase_id; // time base setting for ticket:
|
|
|
|
// 1: absolute: using time stamps
|
|
|
|
// 2: relative: use offsets from
|
|
|
|
// some reference time point,
|
|
|
|
// typically "start time".
|
2023-12-12 11:53:22 +01:00
|
|
|
|
2023-12-12 12:14:14 +01:00
|
|
|
QVector<int> daily_ticket_clearance_type; // who is allowed to buy the ticket:
|
|
|
|
// list of customer types
|
2023-12-12 11:53:22 +01:00
|
|
|
|
2023-12-12 12:14:14 +01:00
|
|
|
QTime daily_ticket_from_min; // used in case time base == 1
|
2023-12-12 11:53:22 +01:00
|
|
|
QTime daily_ticket_to_max;
|
|
|
|
|
2023-12-12 12:14:14 +01:00
|
|
|
int daily_ticket_from_offset_min; // used in case time base == 2
|
2023-12-12 11:53:22 +01:00
|
|
|
int daily_ticket_to_offset_max;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TARIFF_DAILY_TICKET_H_INCLUDED
|