Added State for invalid price

This commit is contained in:
Gerhard Hoffmann 2023-11-28 16:41:27 +01:00
parent b8720bac6c
commit 602ff5f94e

View File

@ -13,7 +13,8 @@
#define VALID (1)
#define INVALID_FROM_DATETIME (2)
#define INVALID_UNTIL_DATETIME (3)
#define STATUS_END (4)
#define INVALID_PRICE (4)
#define STATUS_END (5)
class Ticket {
enum {CODE=0, CODE_STR=1, CODE_DESC=3};
@ -44,7 +45,8 @@ public:
{NOT_INITIALIZED , "NOT_INITIALIZED" , "Ticket not initialized" },
{VALID , "VALID" , "Ticket is valid" },
{INVALID_FROM_DATETIME , "INVALID_FROM_DATETIME" , "Ticket has invalid start datetime"},
{INVALID_UNTIL_DATETIME, "INVALID_UNTIL_DATETIME", "Ticket has invalid end datetime" }
{INVALID_UNTIL_DATETIME, "INVALID_UNTIL_DATETIME", "Ticket has invalid end datetime" },
{INVALID_PRICE , "INVALID_PRICE" , "PARKING NOT ALLOWED: Ticket has invalid price" }
};
private: