Source: https://courses.ex-machina.ma/downloads/gind-2/s7/Gestion_stock/cours.pdf