added discount ear logic to searchresults