Save purchase and purchase detail