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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to write a SIM to post a discount in Micros ... please help

Status
Not open for further replies.

samcgarvey

Programmer
Mar 7, 2014
8
US
We currently have a sim (3700/9700) written that uses tenders (event tmed) and inquiries (event inq). We would ideally like to modify our tender event so that it can make a decision as to whether or not a transaction qualifies for a discount and have it apply the discount automatically. I am not sure if this is possible within a tmed event, or if it should go in an inq event or another event. Also, I need guidance on how to apply the discount to the Micros transaction. The discount would likely be a subtotal or transaction level discount (as opposed to an item discount).

I really appreciate any assistance! Especially SIM code!

Thank you,
Sean
 
If you have a RES system... in X:\Micros\Documentation\Help there is a SIMHelp.chm file. This will give you a fairly comprehensive list of system variables, command, and functions.

The section you are looking for are key codes though, under 'Key Names and Codes'.

Under key types you'll see a list of the type of keys you can simulate the press of... so for example you'll see:

Key: Discount Sequence
Type: 5
Number: Sequence #


To press the key, you do a 'loadkybdmacro' and then create a key, like:

loadkybdmacro key(type,number)

So to ring in discount number 9001...

loadkybdmacro key(5,9001)

You can do other things as well; so say its an open discount and you've calculated somewhere in the SIM they are owed 5.50.. you can do:

loadkybdmacro key(5,9001), makekeys(5.50), @key_enter


If you read the SIMHelp.chm, the documentation is actually fairly good.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top