Ticket Class Rules

From Rts
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.

Variables in class rules
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.
PlaceRuleCode A text code that is assigned to a location place.
SeatTypePriceCode A text code that is assigned to a reserved seating seat type in reserved seating.
SeatPriceCode A text code that is assigned to a specific seat in reserved seating.

Ticket Class Rules Examples

In RTS, navigate to: Setup -> Tickets -> Class Rule.


SU Tickets ClassRule.PNG

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")

For 3D performances, add this to the rule.

(ThreeD=1)

To add seat type price codes, used for different ticket prices within the same auditorium based on seat type

(instr(seattypepricecode,"PriceCodeNameHere")=1) or (instr(seatpricecode, "PriceCodeNameHere")=1).

Replace PriceCodeNameHere with the name of the price code set up in Reserved Seating.



Evening:

  • Everyday, after 4pm, not 3D - ((showtime > CDate("3:59p")) or (showtime < CDate("3:00a"))) and ThreeD = 0
  • Everyday, after 4pm, 3D - ((showtime > CDate("3:59p")) or (showtime < CDate("3:00a"))) and ThreeD = 1
  • Before 5:00 PM and after 3:00 AM on days Monday, Wednesday, and Thursday OR after 12:00 AM on Friday, Saturday and Sunday: (((showtime > CDate("4:59p")) and (showtime > CDate("3:00a"))) and ((DayOfWeek = "MON") OR (DayOfWeek = "WED") OR (DayOfWeek = "THU")) ) OR (((showtime > CDate("11:59A")) and (showtime > CDate("3:00a"))) and ((DayOfWeek = "FRI") OR (DayOfWeek = "SAT") OR (DayOfWeek = "SUN")) )

Matinee (Earlybird):

  • Everyday before 3:59pm not 3D - ((showtime < CDate("3:59p")) or (showtime < CDate("3:00a"))) and ThreeD = 0
  • Everyday before 3:59pm 3D - ((showtime < CDate("3:59p")) or (showtime < CDate("3:00a"))) and ThreeD = 1
  • Before 5:00 PM and after 3:00 AM on days Monday, Wednesday, Thursday OR before 12:00 PM on Friday, Saturday and Sunday: (((showtime < CDate("5:00p")) and (showtime > CDate("3:00a"))) AND ((DayOfWeek = "MON") OR (DayOfWeek = "WED") OR (DayOfWeek = "THU"))) OR (((showtime < CDate("12:00p")) and (showtime > CDate("3:00a"))) AND ((DayOfWeek = "FRI") OR (DayOfWeek = "SAT") OR (DayOfWeek = "SUN")))

Other Examples:

  • Old Early Bird:

(showtime < CDate("12:00p")) And (showtime > CDate("3:00a")) and (DayOfWeek <> "TUE") and ThreeD = 0

  • New Early Bird:

(showtime < CDate("12:00p")) And (showtime > CDate("3:00a")) and DayOfWeek <> "Tue" and ThreeD = 0

  • Old Mat:

(showtime < CDate("4:00p")) And (showtime > CDate("11:59a")) and (DayOfWeek <> "Fri") and (DayOfWeek <> "Sat") and (DayOfWeek <> "Sun") and (DayOfWeek <> "TUE") and ThreeD = 0

  • New Mat:

(showtime > CDate("11:59a")) And (showtime < CDate("6:00p")) and (showtime > CDate("3:00a")) and DayOfWeek <> "Tue" and ThreeD = 0

  • Old Eve:

((showtime > CDate("3:59p")) or (showtime < CDate("3:00a"))) and ((DayOfWeek <> "Fri") and (DayOfWeek <> "Sat") and (DayOfWeek <> "Sun") and (DayOfWeek <> "TUE")) and (ThreeD = 0)

  • New Eve:

((showtime > CDate("5:59p")) Or (showtime < CDate("3:00a"))) and (DayOfWeek <> "Tue") and ThreeD = 0