save order of purchase and generate report