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

Working with Simphony2 Discounts

Status
Not open for further replies.

XDU

Technical User
Jul 28, 2016
10
US
We recently got to test the compatibility of existing isl script on Simphony2. The script is currently running on Micros3700 fine and we hope to port it to work on Simphony2. As I'm not any expert on this, but I wish to involve minimum modification to make the code working on new version.

So far most things are working after some system variable tweaks. When working with discount, I created a new discount entry via EMC, but then I received "the discount is not currently valid" exception. So I turned to reuse a preconfigured demo discount which is set to $$$ amount. The maximum amount I could apply is about 0.91 of the total, so I am guessing there might be something involve a tax setting on the discount. But I'm unable to identify where to change this.

Any help is appreciated. Thanks!

XD
 
What exactly is the ISL script handling in regards to the discount?
 
All it does is to use macro to create a new discount entry in the check.
loadkybdmacro defkey( "Discount", N:23 ), makekeys (discount), @KEY_ENTER, makekeys (reference), @KEY_ENTER
 
Can you use the new discount as a button?
Make sure the Discount is setup and configured like the working on, also make sure that the item you are posting the discount to is allowed to get discounts, and or get them from that new discount.

Can you give more info on the script (post the full section, variables and all)?
Also try this (see below). As I am not sure about the N:23 is for.
I get better results when I use key(9,12) than @KEY_ENTER.
FYI - I am running 9700, which if I am not mistaken is closer to Simphony than 3700 is.
Code:
loadkybdmacro makekeys(discount), key(9,12)
loadkybdmacro makekeys(reference), key(9,12)
 
Thanks for the reply. The discount button is shown up but when I click on it, it's showing the same error "This discount is not currently valid".
In our script, we fetch a negative discount value from API, then loadkybdmacro to enter it under the discount record created earlier.
N:23 is the 23rd discount type in the demo simphony2 I am using. It's not giving the "not currently valid" error at least. But it has a percentage limit on how much the discount can be applied. Hope my answer helps clarify a bit.
 
Can you have the interface send over a positive discount amount?

What's the percentage limit set to? Does the amount sent over from the interface fall within this percentage?
 
We have been creating negative discount through interface like it would be applied by the button as well. Haven't tried a positive amount because no use case.

As for the percentage, it's always a little bit over 90% maximum allowed. If I enter or send over a larger amount, the system rejects it. I noticed the tax rate is also 10%, but it's not showing up in the check. Example, ordering a beer for $4.50, the system says the limit of discount is $4.09, so even tax field is 0.00, there's still payment due 0.41 which I couldn't apply any more discount on it. This is still reusing a demo discount entry. I still couldn't get my own discount to function (not currently valid), so those are two things I couldn't figure out myself.

Thanks.
 
At this point I am thinking the one you created isn't "Active". I don't have a Lab currently available, however, I am rebuilding one now as a side project. I would check the options and settings for the one you created against one that is already in by the system.
 
Should that be the "Enabled" checkbox under Configuration? It's on, but doesn't seem to help. Also it's Active on all the Menu Levels.

Is there anything else to do in order for the change to be applied? like a restart, reload or redistribute? I have tried several thing, at least a restart made the discount button visible like others.
 
Sometimes a reload doesn't help. I would do a full Stop/Start (if you can) and try it again. This is a Lab correct and not Production?
 
That's right. We are testing and updating script to run on Simphony2 Lab.
 
Found the problem why my discount is "not currently valid". The effective start and end dates are checked and they are the same day in the past. Unchecking the end date enabled my discount. Now I am still bothered with the max limit about 90% that a discount could apply. Is this some kind of default behavior?
 
Ha, nice. Thought it was something odd about it. Glad you fixed that part.

By Default Micros will not allow you to discount more than 100% of an item or check. There might be a setting in there for default percentage. Check the Main System parameters for discounts (or the discount themselves), or the Revenue Center's setting. There could be something in those that is limiting it.

It could also be a setting with the Alcohol class. For instance, the site I am at, we do not allow any Alcohol to be Comp'd or Discounted. This is based on how the Itemizers are setup along with the Tax rates and such.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top