changed entity name from Purchase to Sale, added SaleDetail entity