created sales and purchases history page