Created sales function, which matches all sales to a vendor id