I have a button set to update ticket state to GIFT RECEIPT ACTIVE: Yes if a gift receipt is required. when it is pressed the button updates to Cancel Gift Receipt, which when pressed should remove the ticket state of GIFT RECEIPT ACTIVE:Yes. However when i press it to cancel the POS crashes and i have to close and restart. Here’s my flow:
If i use the same actions and have two separate buttons instead (gift receipt and cancel gift receipt) the ticket state updates correctly and there are no issues so i know the actions work fine. when i try to put them into one automation command button and toggle between them this is when they do not work.
Here are the screen shots
select item and press gift receipt button
Ticket state updates to GIFT RECEIPT ACTIVE:Yes, the gift receipt button toggles to say cancel gift receipt and when payment is processed a gift receipt prints.
I’m not sure about the reason of that issue but this is not a correct use of automation toggle as it won’t restore latest state. That toggling feature implemented before we’ve implemented ticket states but I’m keeping it for backward compatibility.
Instead you can create two buttons and display one of them as Gift Receipt state changes. Same as we’ve implemented Gift and Cancel Gift buttons.
To elaborate a little more basically you would create two buttons and set visibility based on state. It would look the same as the toggle but like he said it will work properly.
Yes you have. Sorry that’s what I get for scrolling too fast.
EDIT: LOL did it again. Didn’t read all of @emre post.
@Jesse what mapping do i need to add so that my Gift Receipt button disappears when it is pressed? currently i have the Cancel gift Receipt button to appear only when the gift receipt button is pressed and the ticket state updates to GIFT RECEIPT ACTIVE:Yes, but the gift receipt button doesnt remove after it is pressed
On the other buttons i have when i have an active ticket ive set Enabled States to New, New Orders and they only show on active ticket. If i do the same mapping with the gift receipt button it still shows on the first screen before a ticket is created