When you ship the items to the client, you shall choose Goods Outbound (as the document type) and not Goods out and Sales Invoice. That means you ship without invoicing.
When the client sells to the end client, you open up the Sales Order and you click Invoice. You include the items to invoice (the sold items only).
For the returns, you create a Return of Goods from Client to get the shipped (and not sold items) back to your warehouse. The system notifies you about the number of products that can be returned. You cannot return more quantity than the quantity of the related Document.
Or login to your account.