Finished most of the function which updates the ticket with a custom order. needs to be cleaned up and also need to implement a delete from ticket method