Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

micros sim - event print_trailer

Status
Not open for further replies.

jd11111

Programmer
Apr 29, 2010
160
US
Having trouble with this one. What am I doing wrong?

I get the error "@TRAILER is not a variable"



event print_trailer: TRLR
format @TRAILER[1]= "TESTING"
format @TRAILER[2]= "TESTING"
endevent
 
I think the needs to be declared either global or local as an array, but @trailer[1] etc is part of an array. You have not declared it as an array of string. I will post for you again when I get home.Format & formatq are about formatting, layout.
 
format ord as "TESTING"
@TRAILER[1]= ord
@TRAILER[2]= ord

(And to print lines go as below)
printline @dwon, ord, @dwoff //will write TESTING double wide
printline @trailer[1]
printline @trailer[2]


Format is about setting a string of things together, or trimmimg / presenting them a certain way. eg

format ord as "TESTING" {4} \\will trim it down to TING

I could be wrong, but this is how I have been writing SIM


 
thanks...I do understand what these do. however, my example is from the manual. I'm trying to add to the check trailer. the sim documentation for print_trailer uses format.
 
Below is the following that will print the trailers.


You could put this right in your event.

In our case we store a set frequency in the DB.(Also can be a simple variable in the SIM) When we print the trailer we look that frequency up, then do a mod against the check number. If the result is 0 (no remainder) we call a different sub procedure.


You can also format a string variable and just use that with out quotes

@trailer[1] = strMyVariable







/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
sub print_IVR_trailer
// Just numbers to help 12345678901234567890123456789012
@trailer[1] = " NEXT TIME DESSERT IS ON US "
@trailer[2] = " Please Call r"
@trailer[3] = " 1-555-555-1212 "
@trailer[4] = " within the next three days "
@trailer[5] = " and tell us about "
@trailer[6] = " your experience at "
@trailer[7] = " MikeRose Cafe "
@trailer[8] = " Just bring back your receipt"
@trailer[9] = " with your validation code to "
@trailer[10] = " redeem your free dessert"
@trailer[11] = " VALIDATION CODE:"
@trailer[12] = " ___________________________________"
@trailer[13] = ""
@trailer[14] = ""
endsub
 
thanks. Not sure why it wasn't working before but today I tested it an it worked fine...

event Print_Trailer : TRLR

@trailer[1] = "TEST TEST TEST"
@trailer[2] = "TEST TEST TEST"

endevent


But is it possible to use print formatting commands with this, like you can with printline?
 
You can do:

var myVariable : a20

format myVariable as "Chk Number:", @CKNUM

@trailer[1] = myVariable

 
var myVariable : a30

format myVariable as @dwon, "Chk Number:", @CKNUM, @dwoff

@trailer[1] = myVariable
 
where can i find the script which i can modify the print trailer? i'm using 9700 HMS right now..
 
we have a promotions that we're going to implement as per requirements certain Tendermedia (VISA Credit Card) settlements of a certain amount (minimum amount of $ X.00) after the payment transaction done, the system will print a certain promotion on the receipt, eg. “ FREE 1 HOUR Parking “ etc.

Any ideas how can i code this?

Thankx.

 
@amznilla
If you don't already have a sim in use for the check trailer, then you would have to create one.

I would call a sim from the trailer for the credit authorization slip. The sim could scan the check for the payment method required (and amount) and then print the promotion on the authorization form.

If the guest needs to give up the receipt to redeem the offer, then you probably want to print this on a separate slip (not their credit card receipt).
I'm not sure about printing the offer on a separate slip if it is being called from the trailer, but it might be possible.

An alternative might be to use a SIM that fires off when the required tender media is used and then scan the check for the tender/amount required. This can then print a separate slip with the offer.
 
Or you could use a Final_Tender event that checks for the minimum amount and then checks the detail for the correct payment method(s).
 
The issue with final_tender might be that the guest is not going to wait around for the final tender to happen. You probably want to give the guest the coupon when their credit card is authorized.
 
Good point. I was thinking the other direction; if you have a split tender do you want it to print up multiple free parking coupons? It would also depend on whether it's a QSR or table seating business.
 
How to i code to print separate coupon? what script do i call?
 
@amznilla - there isn't an existing script that you call. Someone would need to write the script (SIM). Depending on how it is implemented, you may call the SIM from the trailer section (of the credit card slip) or it may be coded to happen automatically.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top