Choose from list

I created an App to make orders. I've already created a table receipt which contains the buyer informations (name, phone numbet etc...)  and another table with receipt details, which contains the items that he ordered (prices, quantity etc...). I need to create a function to copy some items of the order in another table (receipt) as some items could be not in stock. How can i do it? 
@AleksiAlkio 

0 1 102
1 REPLY 1

This 

or

this 

Top Labels in this Space