From 2cac4572a83e19eeaf2f9ae1bea562e92982e4aa Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 6 May 2006 13:24:37 +0000 Subject: [PATCH] =?UTF-8?q?d=E9but=20ajout=20de=20la=20gestion=20des=20bon?= =?UTF-8?q?s=20de=20livraison?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../includes/modules/modExpedition.class.php | 88 ++++++++++--------- 1 file changed, 47 insertions(+), 41 deletions(-) diff --git a/htdocs/includes/modules/modExpedition.class.php b/htdocs/includes/modules/modExpedition.class.php index 8ce88c16bac..b3a163d535d 100644 --- a/htdocs/includes/modules/modExpedition.class.php +++ b/htdocs/includes/modules/modExpedition.class.php @@ -89,54 +89,60 @@ class modExpedition extends DolibarrModules // Permissions $this->rights = array(); $this->rights_class = 'expedition'; - - $this->rights[1][0] = 101; - $this->rights[1][1] = 'Lire les expeditions'; - $this->rights[1][2] = 'r'; - $this->rights[1][3] = 1; - $this->rights[1][4] = 'lire'; + $r=0; + + $r++; + $this->rights[$r][0] = 101; + $this->rights[$r][1] = 'Lire les expeditions'; + $this->rights[$r][2] = 'r'; + $this->rights[$r][3] = 1; + $this->rights[$r][4] = 'lire'; - $this->rights[2][0] = 102; - $this->rights[2][1] = 'Créer modifier les expeditions'; - $this->rights[2][2] = 'w'; - $this->rights[2][3] = 0; - $this->rights[2][4] = 'creer'; + $this->rights[$r][0] = 102; + $this->rights[$r][1] = 'Créer modifier les expeditions'; + $this->rights[$r][2] = 'w'; + $this->rights[$r][3] = 0; + $this->rights[$r][4] = 'creer'; - $this->rights[3][0] = 104; - $this->rights[3][1] = 'Valider les expeditions'; - $this->rights[3][2] = 'd'; - $this->rights[3][3] = 0; - $this->rights[3][4] = 'valider'; + $this->rights[$r][0] = 104; + $this->rights[$r][1] = 'Valider les expeditions'; + $this->rights[$r][2] = 'd'; + $this->rights[$r][3] = 0; + $this->rights[$r][4] = 'valider'; - $this->rights[4][0] = 109; - $this->rights[4][1] = 'Supprimer les expeditions'; - $this->rights[4][2] = 'd'; - $this->rights[4][3] = 0; - $this->rights[4][4] = 'supprimer'; + $this->rights[$r][0] = 109; + $this->rights[$r][1] = 'Supprimer les expeditions'; + $this->rights[$r][2] = 'd'; + $this->rights[$r][3] = 0; + $this->rights[$r][4] = 'supprimer'; - $this->rights[1][0] = 1101; - $this->rights[1][1] = 'Lire les bons de livraison'; - $this->rights[1][2] = 'r'; - $this->rights[1][3] = 1; - $this->rights[1][4] = 'lire'; + $this->rights[$r][0] = 1101; + $this->rights[$r][1] = 'Lire les bons de livraison'; + $this->rights[$r][2] = 'r'; + $this->rights[$r][3] = 1; + $this->rights[$r][4] = 'livraison'; + $this->rights[$r][5] = 'lire'; - $this->rights[2][0] = 1102; - $this->rights[2][1] = 'Créer modifier les bons de livraison'; - $this->rights[2][2] = 'w'; - $this->rights[2][3] = 0; - $this->rights[2][4] = 'creer'; + $this->rights[$r][0] = 1102; + $this->rights[$r][1] = 'Créer modifier les bons de livraison'; + $this->rights[$r][2] = 'w'; + $this->rights[$r][3] = 0; + $this->rights[$r][4] = 'livraison'; + $this->rights[$r][5] = 'creer'; - $this->rights[3][0] = 1104; - $this->rights[3][1] = 'Valider les bons de livraison'; - $this->rights[3][2] = 'd'; - $this->rights[3][3] = 0; - $this->rights[3][4] = 'valider'; + $this->rights[$r][0] = 1104; + $this->rights[$r][1] = 'Valider les bons de livraison'; + $this->rights[$r][2] = 'd'; + $this->rights[$r][3] = 0; + $this->rights[$r][4] = 'livraison'; + $this->rights[$r][5] = 'valider'; - $this->rights[4][0] = 1109; - $this->rights[4][1] = 'Supprimer les bons de livraison'; - $this->rights[4][2] = 'd'; - $this->rights[4][3] = 0; - $this->rights[4][4] = 'supprimer'; + $this->rights[$r][0] = 1109; + $this->rights[$r][1] = 'Supprimer les bons de livraison'; + $this->rights[$r][2] = 'd'; + $this->rights[$r][3] = 0; + $this->rights[$r][4] = 'livraison'; + $this->rights[$r][5] = 'supprimer'; }