Changing Ticket Closing Worklow Turtorial question?

Continuing the discussion from Changing Ticket Closing (Locking) Workflow:

Hi,
After followed this turtorial, every thing work well. Except if i make order on entity (table) end close it. Then open that table again to click Change Table button, after choose a new table. The new table is have a correct state, have correct color. But the old table is still remain its last state, have the color the same as new table.
How to update the old table State, in this case i need its Entity State is Available.
I still not know to use what event to fix this.
Please help
Thanks

You will need to use the Ticket Entity Changed Event, and put an Update Entity State Action in that Rule to set Previous Entity Status State to Available.

1 Like

Hi,
Sorry, How to set Previous Entity Status? :joy:
Because in this Tutorial, we have Unpaid state with Organ color, Paid state with (may be) Green color. So need to change the new Entity State right to the Previous Entity state, and the Previous Entity to Available State.
Please help @@


I looking for on https://sambapos.com/wiki/doku.php/events#ticket_entity_changed but it do not have enough information @@