search and sale_detail finally