added query in salescontroller