Sample discount macros
 
The following table lists and described sample discount macros for use in item discounts (item/pass relationships). See SysManager > Activities > DCIs > New/Edit > Action tab > Validation section > Template button > Item/Pass Relationships tab > Discount macro for assigned item: field. Also see the Salesware Validation document for more information.
 
Sample discount macro
Description
SPECIAL("XXXXXXXXXX")
 
Applies the special specified between the quotes (special nickname padded out to ten characters).
SPECIAL("XXXXXXXXXX" , 10.00)
 
Applies the special name to the line and sets the item’s price to the specified amount. This adjusts the amount of the discount accordingly. In this example the special specified between the quotes is applied to the line, but the end price of the item is $10. A $50 item would show a $40 discount, a $100 item would show a $90 discount, etc.
SPECIAL("XXXXXXXXXX", 5, 3.00)
 
In this example, special XXXXXXXXXX is applied to the item, a 5% discount and a $3 discount is applied to the item.
PRICE( 10.00 )
 
This example would set the price of an item to $10 and not apply any special or calculate a discount amount based on the original price of the item.
CHECKNOSPECIAL()CHECKPOINTS(points2, 6, 50, Do you want your free ticket?, SPECIAL("DISCOUNT ")CHANGENUMVAL(-7))
 
This example first checks the point value in the points2 field for the pass. The value of the points2 field must be between 6 and 50. If this is true, the operator is prompted to ask the guest if she would like to receive her free ticket. If the answer is “yes” to this question, the special is applied and the points are reset by 7. If the points2 field is not between 6 and 50, the guest accumulates one point every day that her pass is used to validate a full price (non-discounted) item.
SPECIAL("15% ")EVERYX(points2, 5, "This is your 5th purchase - it's free", SPECIAL("100% "))
 
This example first checks the point value in the points2 field for the pass. If the value of the points2 field is a multiple of five, the operator is notified that the guest receives her free ticket and the “100%” special is applied to the item. If the points2 field value is not a multiple of five, the “15%” special is applied.