@diazoviedo
Got it, but test it yourself.
Open an order, and get the ticket, it will for example get the (ticket number) 00001111.
Close this same order, and get the ticket, it will, for example, get the (deal) 00002222 or 00006789, it will not bring the (ticket number) 00001111.
I don't understand why he simply exchanges obtaining the (ticket number) for the (deal).