Action macro
<ABSENT>
SELECTITEM('PASSES MARKETING TRADESHOW ")
SETPASSSWIPE(<CARD_SWIPE>)
DISPLAY(Please Collect Guest Information)
</ABSENT>
<PRESENT>
IGNOREERRORS()
SELECTIVESPECIAL('25% ')
VALIDATE(S<CARD_NO>)
</PRESENT>
Explanation
If the card number swiped/scanned in Sales is not currently located within the swipe_no field of an existing pass record in Salesware, auto-sell the TRADESHOW pass item and prompt the operator to collect guest information. Automatically insert the card number swiped into the swipe_no field of the auto-sold pass.
If the card number swiped/scanned in Sales is currently located within the swipe_no field of an existing pass record in Salesware, apply the 25% discount to the eligible item included in the sale and validate it (using the card number) based on the Validation template of the item being discounted.
Result
The first time a Trade Show Card is presented to an operator, the operator swipes the card, a pass is auto-sold, the card number swiped is inserted into the swipe_no field of the auto-sold pass record and the operator collects guest information. Subsequent swipes of the same card discount the appropriate items already added to the sale (in this particular example, only the 1-Day Adult Entrance ticket) and validate the pass. This results in deduction of one daily use.