What I’m trying to do is remove the Staff entity from the tickets when a table is selected and the ticket has been closed (not complete).
The reason for this is because, I am using a switch user function, and yesterday a client had a lady that had opened 2 tabs on her table due to the fact the table was added after the products. When the owner went to merge the tickets it wouldn’t allow him to because 2 different employee entities had opened the two tickets.
If I could remove the entities when a table has been selected and the ticket has been closed then this would solve this problem
How does it know that means you want it to delete it. All it knows is you set the type. Besides updating entity data will not add or remove entities. You need change ticket entity. You must use a parameter. If you leave the action blank it does not know what to do.
Not really. Its more of the fact that you havnt really told me what your trying to do. You have asked a specific question about a specific feature but not explained how you plan to use it. You kind of have but if you want a specific answer you need to be very specific with your flow etc.
Ok I just read your question in more detail. It sounds to me like all you need is to remove the Employee entities before the merge. So we should look at automation that will perform that then merge the tickets.
My question is… how does each employee get proper credit?
Each employee is assigned to a Staff Entity when they open a ticket and add a product. this is so when they log out and log back in, their ticket can be reloaded. Its used for the Switch User function.
Each employee is a User and an Entity so removing the entity wont affect their sales.
If they select a table the staff entity is no longer needed as they will now be assigned a table and can be found using the select table button.