1) The salesman said he was very glad to receive the order the day before.
2) The salesman said he was very glad to have received the order the day before.
I think that a perfect infinitive (to have p.p) should be applied to the subordinate clause when the tense of the main clause is preceded by that of the subordinate one.
The above two sentences have the adverbial phrase "the day before" indicating that certain behavior happened in the past. But what is the adverbial phrase modifying now? If it modifies the behavior of receiving now, the sentence 2 will be right, but if it qualifies the behavior of saying, can the sentence 1 be right?