How to unite same table orders into one?

We need to allow multiple users to scan the code of the same table and allow updating existing orders instead of creating new ones. What are the steps to do this?