Source: https://www.ensta-bretagne.fr/lebars/tutorials/achat/purchase.pdf