Common fields on Graphic Pass layouts
 
Field
Function call
Notes
Mug shot – Prints the guest photo on a pass
esppimg('guests.mug_shot',2)
 
Print when: .not. empty(guests.mug_shot)
First name – Prints the guest first name on a pass
alltrim(guests.first_name)
 
 
Last name – Prints the guest first name on a pass
alltrim(guests.last_name)
 
 
Item description – Prints the item description on a pass
alltrim(items.descrip)
 
 
Printed pass number – Prints the pass number on a pass
'P'+alltrim(str(gst_pass.pass_no,16,0))
 
 
Printed guest number – Prints the guest number on a pass
'G'+alltrim(str(gst_pass.guest_no))
 
 
Swipe number – Printed swipe number (often used in In-House Cards programs)
alltrim(gst_pass.swipe_no)
 
 
Barcode with pass number
 
BC_CODE128('PXX'+dec2baseXX(gst_pass.pass_no))
 
Standard barcode font BC C128 Narrow Size 28 is used in a lot of the samples
Mag-swipe track 1 encoding designed to auto-sell an item with a pass number swipe
"~1%AP"+alltrim(str(gst_pass.pass_no,16,0))+"?"
 
 
Mag-swipe track 1 encoding designed to discount items in a sale with a pass number swipe
"~1%EP"+alltrim(str(gst_pass.pass_no,16,0))+"?"
 
 
Mag-swipe track 1 encoding designed for In-House Cards item use
"~1%B"+alltrim(gst_pass.swipe_no)+"?"
 
 
Mag-swipe in track 2 encoding of a pass number (only numbers are allowed in track 2)
"~2;"+alltrim(str(gst_pass.pass_no,16,0))+"?"