diff --git a/htdocs/compta/bank/releve.php b/htdocs/compta/bank/releve.php index 18fb8df3100..5e6c5c5083a 100644 --- a/htdocs/compta/bank/releve.php +++ b/htdocs/compta/bank/releve.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2006 Laurent Destailleur + * Copyright (C) 2004-2007 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,7 +17,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ - * $Source$ */ /** @@ -289,6 +288,35 @@ else print ''; $newline=0; } + else if ($links[$key]['type']=='sc') { + print ''; + print img_object($langs->trans('ShowBill'),'bill').' '; + print $langs->trans("SocialContribution"); + print ''; + $newline=0; + } + else if ($links[$key]['type']=='payment_sc') { + print ''; + print img_object($langs->trans('ShowPayment'),'payment').' '; + print $langs->trans("SocialContributionPayment"); + print ''; + $newline=0; + } + else if ($links[$key]['type']=='member') { + print ''; + print img_object($langs->trans('ShowMember'),'user').' '; + print $links[$key]['label']; + print ''; + $newline=0; + } + else if ($links[$key]['type']=='banktransfert') { + /* print ''; + print img_object($langs->trans('ShowTransaction'),'payment').' '; + print $langs->trans("TransactionOnTheOtherAccount"); + print ''; + $newline=0; + */ + } else { print ''; print $links[$key]['label']; diff --git a/htdocs/includes/modules/modSociete.class.php b/htdocs/includes/modules/modSociete.class.php index a22334c4351..bbeafd62b18 100644 --- a/htdocs/includes/modules/modSociete.class.php +++ b/htdocs/includes/modules/modSociete.class.php @@ -135,38 +135,38 @@ class modSociete extends DolibarrModules $this->rights[$r][3] = 0; // La permission est-elle une permission par défaut $this->rights[$r][4] = 'export'; - $r++; - $this->rights[$r][0] = 281; // id de la permission - $this->rights[$r][1] = 'Lire les contacts'; // libelle de la permission - $this->rights[$r][2] = 'r'; // type de la permission (déprécié à ce jour) - $this->rights[$r][3] = 1; // La permission est-elle une permission par défaut - $this->rights[$r][4] = 'contact'; - $this->rights[$r][5] = 'lire'; - - $r++; - $this->rights[$r][0] = 282; // id de la permission - $this->rights[$r][1] = 'Créer modifier les contacts'; // libelle de la permission - $this->rights[$r][2] = 'w'; // type de la permission (déprécié à ce jour) - $this->rights[$r][3] = 0; // La permission est-elle une permission par défaut - $this->rights[$r][4] = 'contact'; - $this->rights[$r][5] = 'creer'; - - $r++; - $this->rights[$r][0] = 283; // id de la permission - $this->rights[$r][1] = 'Supprimer les contacts'; // libelle de la permission - $this->rights[$r][2] = 'd'; // type de la permission (déprécié à ce jour) - $this->rights[$r][3] = 0; // La permission est-elle une permission par défaut - $this->rights[$r][4] = 'contact'; - $this->rights[$r][5] = 'supprimer'; - - $r++; - $this->rights[$r][0] = 286; // id de la permission - $this->rights[$r][1] = 'Exporter les contacts'; // libelle de la permission - $this->rights[$r][2] = 'd'; // type de la permission (déprécié à ce jour) - $this->rights[$r][3] = 0; // La permission est-elle une permission par défaut - $this->rights[$r][4] = 'contact'; - $this->rights[$r][5] = 'export'; + $r++; + $this->rights[$r][0] = 281; // id de la permission + $this->rights[$r][1] = 'Lire les contacts'; // libelle de la permission + $this->rights[$r][2] = 'r'; // type de la permission (déprécié à ce jour) + $this->rights[$r][3] = 1; // La permission est-elle une permission par défaut + $this->rights[$r][4] = 'contact'; + $this->rights[$r][5] = 'lire'; + + $r++; + $this->rights[$r][0] = 282; // id de la permission + $this->rights[$r][1] = 'Créer modifier les contacts'; // libelle de la permission + $this->rights[$r][2] = 'w'; // type de la permission (déprécié à ce jour) + $this->rights[$r][3] = 0; // La permission est-elle une permission par défaut + $this->rights[$r][4] = 'contact'; + $this->rights[$r][5] = 'creer'; + + $r++; + $this->rights[$r][0] = 283; // id de la permission + $this->rights[$r][1] = 'Supprimer les contacts'; // libelle de la permission + $this->rights[$r][2] = 'd'; // type de la permission (déprécié à ce jour) + $this->rights[$r][3] = 0; // La permission est-elle une permission par défaut + $this->rights[$r][4] = 'contact'; + $this->rights[$r][5] = 'supprimer'; + $r++; + $this->rights[$r][0] = 286; // id de la permission + $this->rights[$r][1] = 'Exporter les contacts'; // libelle de la permission + $this->rights[$r][2] = 'd'; // type de la permission (déprécié à ce jour) + $this->rights[$r][3] = 0; // La permission est-elle une permission par défaut + $this->rights[$r][4] = 'contact'; + $this->rights[$r][5] = 'export'; + // Exports //-------- $r=0;