Use OR clause in search_rec_name of purchases

issue3707
review3761002