emreeren/SambaPOS-3 — pull request #271 by Profi-Concept (2013-07-14 03:57:16+00:00)
Title: Fixes issues with EntitySelected-Event and ticketcreation

When I investigated the posibility for linking entities together (see #243 for reference) I discovered that the EntitySelected-Event is fired befor a ticket is created and if you let this rule create a ticket with the CanCreateTicket-Option this ticket isn't used any further.

I think the time when the EntitySelected-Event fires is wrong. Not only conceptionaly (it is more important that the entity is fully selected and a needet ticket is already created or selected befor anything else has to be done with it) but also wording wise (Selected = past-tense => occurs after the Entety is selected).

This commit fires the EntetySelected-Rule after a ticket is created or selected.
I also added a refresh of the Ticket-View. This could be refactored to a "RefreshTicketView"-Action.

I will also write a how-to on how to link entites together in the forum.