Added State for invalid price
This commit is contained in:
parent
b8720bac6c
commit
602ff5f94e
@ -13,7 +13,8 @@
|
|||||||
#define VALID (1)
|
#define VALID (1)
|
||||||
#define INVALID_FROM_DATETIME (2)
|
#define INVALID_FROM_DATETIME (2)
|
||||||
#define INVALID_UNTIL_DATETIME (3)
|
#define INVALID_UNTIL_DATETIME (3)
|
||||||
#define STATUS_END (4)
|
#define INVALID_PRICE (4)
|
||||||
|
#define STATUS_END (5)
|
||||||
|
|
||||||
class Ticket {
|
class Ticket {
|
||||||
enum {CODE=0, CODE_STR=1, CODE_DESC=3};
|
enum {CODE=0, CODE_STR=1, CODE_DESC=3};
|
||||||
@ -44,7 +45,8 @@ public:
|
|||||||
{NOT_INITIALIZED , "NOT_INITIALIZED" , "Ticket not initialized" },
|
{NOT_INITIALIZED , "NOT_INITIALIZED" , "Ticket not initialized" },
|
||||||
{VALID , "VALID" , "Ticket is valid" },
|
{VALID , "VALID" , "Ticket is valid" },
|
||||||
{INVALID_FROM_DATETIME , "INVALID_FROM_DATETIME" , "Ticket has invalid start datetime"},
|
{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:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user