Create html reports for sale and purchase

Migrate sale order report and purchase order report to the new html
infrastructure

Change-Id: I2d13997191f3157e9ceb4c61109e3731f2d673fc