How to receive the items against Purchase Order and have the quality check?

The stock quality check depends on the master configuration.
The below are the basic Master configuration requirements for quality control/QC orders.
Mandatory:

1.Item master
QC Required : Yes
QC required type :Sample for lots or Sample for lot Serial
2.Site item Master:
QC Required: Yes:
Generate Lot No:Yes
Location code APRV:Saleable location
Location code Inspection:Quarantine Location
Location code Rejection:Rejected location:
3.Supplier master :
QC Required : Yes
Using Purchase receipt(Good Receipt Note) the stock is accepted in a quarantine location and the system generates the QC orders with batches for quality checks items.