If you want to raise a credit note for the one invoice, I suggest you read the following article which explains the necessary steps involved: Managing credit notes
If you want to move the stock into the Gifts and Samples nominal code you can create a Journal to do this:
For more information on using Journals please check out the following link: Journals
I am not an accountant so it is worth checking with one to see if either of these methods would be acceptable.