So @QMcKay I thought I would save you some time since you are hard at work in your Inventory Import Module.
I have dropped a GIF below that shows the following:
1. Happy Hour Discounts per your Tutorial - Unchanged except I use % of {PRICE} 2. 3 VIP Discounts per your Tutorial - Unchanged except I use % of {PRICE} 3. 7 Price Definition [Including a $ Value for Portion Happy Hour]
The GIF demonstrates swapping in and out of VIP (Customer) to simple Happy Hour as per your tutorial BUT also maintains Portion Pricing. It further demonstrations all this happening with 7 Price Definitions which is crucial if you wish to maintain Portion Discounts.
Oh I should mention you can change Price Levels on the fly and still maintain Portion Discount Pricing as well as VIP and HHā¦
@emre kindly linked me this tutorial which I used to implement the 7 Price Levels Automation Command button shown in RED.
Once I implemented this Tutorial it was just a question of how to maintain VIP or HH with Portions and then throw Price Definitions at it! The process was just a little hard to think out but only required 1 key RULE using the following Key Action:
UPDATE ORDER PRICES
[EDIT]
I probably will not use a Toggle for 7 Price Levels but actually assign 2-3 to Customers and use this Price Definition on Customer Selection. A Few others will be accessible from Automation Buttons in the Supervisor Menu.
@markjw you will need to use the PORDER PORTION CHANGED Event to manage your Discount Pricing on Portions. In simple terms it is really just calling the UPDATE ORDER PRICES Action.
So in summary I can have a $ based Discount on Portions BUT ALSO a % based discount on the Product Name that will cover all portions. Some Venues may just wish to save entering Portion Pricing Levels and Discount for every single Item Portion.
Emre, loving SambaPOS!
Sorry about the 3 posts but cannot include of relevant parties in 1 postā¦
PICS coming:
Ok these 2 Rules does all the work! No new States, just using a Order Tag as per Emreās Tutorial.
Update Order Price
This is where the Intellect is - you will save hours trying to discover this Rule. Why share BECAUSE blokes like JTRTech
have saved me hours (Cash Back)
CD Update Order State DiscountType
Constraint: ā{TICKET STATE:VIP}ā == āActiveā || [=TN(ā{ORDER TAG TOTAL:HH DISCOUNT}ā)] <0
DiscountType State: [:NextCommandValue]
CD Update Order State DiscountType
Constraint: ā{TICKET STATE:VIP}ā == āActiveā
DiscountType State: VIP
CD Update Order State DiscountType
Constraint: [=TN(ā{ORDER TAG TOTAL:HH Discount}ā)] <0
DiscountType State: HH
But still not working?
Iāve copied the above images, but with no actual text, Iām wondering if there is a space, comma, bracket or something wrong? as its hard to see with the image being relatively smallā¦
If you never change the Portion, then nothing will happen. You might need to use a different Event like Order Added and/or Ticket State Updated to trigger your actions.
Not sure if its relevant but think it might be connected but if you are having issues with update order and portions do [:Portion] on the action and then {PORTION} in the rule along with the price tag/etc.
I have found sometimes updating order clears the portion back to normal hence the {PORTION} tag to keep the existing portion.
My entity based price list/tag is fairly simpleā¦
Entity selected rule selects all orders and sets price tag to {ENTITY DATA:Price List}.
On order added I have another rule with does similar for new orders added.
Very basic but does the job.
If I log out then back in, that let the VIP work, but not the portionā¦ so its triggering thatā¦ However, the discount for the price list editor isnāt workingā¦
Cant help but think ive missed something completely here
No, update the orders with the price tag and found I needed to add {PORTION} so that it kept the existing portion rather than clearing as blank field here seemed to overwrite back to normal, sure it was discussed and not sure if fixed or not, that was in .60
When you have spare 5 mins, is there any chance you could double check my constraints? Like I said earlier, trying to copy from a small pic might mean I havenāt got it perfectly right?
I cant comment on the states stuff as dont have any of that on mine but using the portion tag solved the changing price tag on a very simple setup.
Might not be the issue, looking back at the system I dont have it on v5, may have already been sortedā¦ probably ereliventā¦
Bit distracted as a client managed to get themselves a nasty virus which is causing havoc for themā¦
Thatās what my brain was thinking, Iām not sureā¦ As Iām still not apt with constraints, I just presumed they would work it? (the ones that in the OP above)
Your portion changed rule? But that starts automation command which contains setting the discount state which is a constraint on the portion changed rule?
The portion changed rule wont fire because its looking for a state which is set by a result of that action?