Insert version for Group Code.
Create purchase order and purchase detail.