Creating Order Processing Classes
Using Studio create the Cinema.TicketOrderOpens in a new tab and Cinema.TicketItemOpens in a new tab classes. Both classes are persistent.
Add the following properties toTicketOrder:
TicketOrder Properties
Property | Type | Default |
---|---|---|
Total | %FloatOpens in a new tab (SCALE=2) | |
Complete | %BooleanOpens in a new tab | 0 |
Add the following properties to TicketItem:
TicketItem Properties
Property | Type | Default |
---|---|---|
AdultTickets | %IntegerOpens in a new tab | 2 |
ChildTickets | %IntegerOpens in a new tab | 0 |
Show | Cinema.ShowOpens in a new tab |