That calculates a new price for a specific promotional item.
This forula works fine in a ShowMessage action, but work horrible in a ChangePrice Action… Seems like {TOTAL PRICE} has a complete different value in the two actions.
The way quantity works I different when you press 5 and then product. Vs pressing product 5 times. try replacing {TICKET QUANTITY SUM:X} with just {QUANTITY}
why in the messagebox {TICKET QUANTITY SUM:X} works, and why in the action not… that has nothing to do with {QUANTITY}, and the problem seem to be in the {PRICE}…
but I see your point, so I will try with {QUANTITY} instead of {…SUM:X…}
the formula works great in the ShowMessage Action, but throws a horrible result in the Update Order Action. and I think that the problem is with the {TOTAL PRICE} Tag… I cannot figure out why…
{TOTAL PRICE}should be{PRICE} x {QUANTITY}?? {TOTAL AMOUNT} does not work either, seems like all TOTAL for that line have a strange value, much mor higher that it should be.
When you call the UPDATE ORDER action with new price, It automatically calculates multiplies the new price by QUANTITY… so thats why I was getting a strange price… I was beeing multiplied again…
This works with 1 exception if you add the beers by pressing Product, Product, Product and the third product goes on ticket as 2.00 directly after if you press 3 + Product it adds as 6.00
As long as you do not envoke the {TICKET QUANTITY SUM:X) Custom constraint directly before using {NUMBERPAD} + Product it works correctly.
This is kind of strange behavior it does not make sense to me. I can kind of see what it is doing… I just have not figured out a constraint to prevent it.
OMG I FIGURED IT OUT!!! Keep same rules as I just showed but MAKE SURE you sort them so the {QUANTITY} Rule comes After the {TICKET QUANTITY SUM:X} Rule
THe beautiful results…
I never realized that the actual order the rules are listed in the Rules Menu also affect the order they fire!!!
I was getting close, but not perfect… my formula was having strange result with large numbers since it included products that were alredy with promotinal price!
CONGRATULATIONS!!!
and THNAK YOU VERY MUCH FOR HELPING ME OUT HERE!!!
So its working for you now? And no I did not. But looks like you have it tweaked and working better unless im reading it wrong… this little exercise has fried my brain lol. Its like we are trying to figure out Pi by ordering beers and burritos