Matching the supplier’s invoice, the purchase order

Matching the supplier’s invoice, the purchase order, and the receiving report normally should be the responsibility of the: 

a. warehouse receiving function.
b. purchasing function.
c. general accounting function.
d. treasury function.