1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
nbCommandeMax = Produit.MAX - Stock.QTE
SI nbCommandeMax = Produit.MAX ALORS
nbCommande = Produit.MAX
priorité = Forte (Risque de rupture)
SINON
// on imagine que faible ,moyenne ou forte depend du ratio du nombre a commander par rapport a la quantite max
Tauxdereappro =1-(nbCommandeMax/Produit.MAX)
si Tauxdereappro>0 and Tauxdereappro< 0.333 ALORS
priorité = Forte
SINON
SI Tauxdereappro>0.334 and Tauxdereappro< 0.666 ALORS
priorité = Moyenne
SINON
priorité = Faible
nbCommande = nbCommandeMax
FINSI |
Partager