Ticket Class Rules

From Rts
Revision as of 02:02, 3 December 2017 by Root (talk | contribs) (Created page with "Ticket class rules are used to automatically enable certain ticket types depending on show time, film, auditorium, and/or seat classification. Rules are written in the expres...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Ticket class rules are used to automatically enable certain ticket types depending on show time, film, auditorium, and/or seat classification. Rules are written in the expression evaluator and applied for each ticket. There are variables that are set to the current film, showtime, auditorium, and seats when the rule is evaluated. Class rules can be mixed case eg. Mon is the same as MON.

Varibles

Showtime - The time the performance starts. Compared with the cdate() operator.

DayOfWeek - The day the performance starts. Values are abbreviated as 3 characters quoted strings using US 3 day abbreviations. (Mon, Tue, Wed...)

Rating - The text rating that is assigned to the film.

ThreeD - If the performance is marked as a 3D performance.

PlaceClassRule - A text code that is assigned to a location place.

SeatTypeCode - A text code that is assigned to a reserved seating seat type in reserved seating.

SeatTypePriceCode - A text code this is assigned to a specific seat in reserved seating.


A rule that enables a ticket at or after 6pm and before 3am.

(Showtime >= cdate("6:00pm"))

or

(Showtime < cdate("3:00am))

A rule that enables a ticket at or after 6pm Friday and before 3am Saturday.

( (Showtime >= cdate("6:00pm")) and DayofWeek="FRI" )

or

( (Showtime < cdate("3:00am)) and DayofWeek="Sat" )

The same rule but only for 3D performances.

ThreeD=1 and (

( (Showtime >= cdate("6:00pm")) and DayofWeek="FRI" )

or

( (Showtime < cdate("3:00am)) and DayofWeek="Sat" )

)