I dont know if it is an issue or just a simple question.
I have a rule to add 10% of service charge in all tables, except if you buy from the counter.
Sometimes people sits on the table and then they realize that the order should have been in the counter, so I move the ticket.
Moving the ticket is supposed to evalueate new set of rules, for example, 10% service charge rule does NOT apply to counter, but having the table moved keeps the 10% service charge.
Is there any way to update ticket so re-evaluates rules?
I have found that Ticket Entity Updated tends to be a better event for when Entities are changed.
You may need another Rule to cancel the Service charge when moving away from a Table.
Dear @john, I changed rule to “ticket entity updated” and now action rule “taxa de serviço” does not work anymore. I had to change it back to “ticket entity updated”
first, to test that all works, just adding service charge, but at the same time I added an actin that calculates a 0% service charge when table is moved… but neither did work…
Clone your service charge action and add Remove to the name and set the amount to 0 (zero)
Clone your Rule that adds the service charge, remove the Starts with M constraint and change the Action to the one above.
Then make sure this Rule is just above the existing Rule using Sort.
When ever you change a table it will remove the service charge, and if the Table starts with M, it will add the 10% back on.