Validation : Barcodes and magswipes : Fields for a typical pass program
 
Fields for a typical pass program
 
A typical pass program involves:
Allows access to the venue by scanning a barcode via a Symbol or gate scanner.
Offers discounts on various items by swiping a pass in Sales.
Access Control prefix used for pass numbers is P.
 
The program above would require adding the following two fields to the pass layout for the barcode and magswipe:
1. Barcode: Access Control prefix followed by an encrypted pass number. This creates a barcode that is scanned by a Symbol or gate scanner: BC_CODE128('PXX'+dec2baseXX(gst_pass.pass_no))
2. Magswipe: Sales auto command prefix for discounts followed by the Access Control prefix followed by an unencrypted pass number. This is swiped in Sales: "~1%EP"+alltrim(str(gst_pass.pass_no,16,0))+"?"
 
Note: There is an obscure Sales32c.INI [Preferences] setting that allows the same encrypted barcode to be scanned with a remote scanner (Symbol unit or GateKeeper scanner) for lift/venue access and also be scanned with a salespoint scanner in order to trigger the %E Sales auto command functionality. This particular setting helps in situations where encoding magswipes in order to implement the %E auto command discounting is not an option. The setting is EncryptedAutoCommand=TRUE. For more information, see the Salesware .INI Settings Reference document.
 
Only use this type of program implementation if encoding a magswipe for salespoint use is not an option!