Retaining Sample Stock
Sample stock is a batch of any Item stored for analysis, should the need arise later.
The Item for which sample stock is stored can be a raw material, packaging material, or finished product.
1. Prerequisites
Before using sample retention, it is advised that you create the following first:
2. How to set up Sample Retention
2.1 Set the Sample Retention Warehouse in the Company
The Sample Retention Warehouse is set in the Company, in the Stock and Manufacturing tab > Warehouse Defaults section. It is advised to create a separate Warehouse for retaining samples, for example 'Sample Retention', and not use it in production.

2.2 Enable Retain Sample in the Item master
Retain Sample is based on Batches, hence Has Batch No should be enabled first. Then, in the Serial Nos / Batches section of the Item's Inventory tab, enable Retain Sample and set the Max Sample Quantity, which is the maximum sample quantity that can be retained for a Batch.

3. How to retain samples
- When a Stock Entry is created with the purpose 'Material Receipt' or 'Manufacture' for Items with Retain Sample enabled, set the Sample Quantity in the Item row. Select the Batch No for the Item(s). The Sample Quantity cannot be more than the Max Sample Quantity set in the Item master. Retain Sample and Sample Quantity can be set in the Purchase Receipt Item rows too.

- On submission of the Stock Entry, click on Create > Sample Retention Stock Entry to create another Stock Entry that transfers the sample Items of the Batch to the Sample Retention Warehouse set in the Company.

- This opens a new Stock Entry of type 'Material Transfer', which transfers the samples from your Target Warehouse (for example, Stores) to the Sample Retention Warehouse. Verify the details and submit it.
