Qatar Airways has agreed to purchase as many as 100 Boeing airplanes for up to $18.6bn, the companies jointly announced on Friday.