diff --git a/htdocs/adherents/adherent.class.php b/htdocs/adherents/adherent.class.php
index 8bae02f88c3..96c99a03b52 100644
--- a/htdocs/adherents/adherent.class.php
+++ b/htdocs/adherents/adherent.class.php
@@ -1000,18 +1000,18 @@ class Adherent extends CommonObject
}
/**
- \brief Fonction qui insere la cotisation dans la base de donnees
- et eventuellement liens dans banques, mailman, etc...
- \param date Date d'effet de la cotisation
- \param montant Montant cotisation (accepte 0 pour les adherents non soumis e cotisation)
- \param account_id Id compte bancaire
- \param operation Type operation (si Id compte bancaire fourni)
- \param label Label operation (si Id compte bancaire fourni)
- \param num_chq Numero cheque (si Id compte bancaire fourni)
- \param emetteur_nom Nom emetteur cheque
- \param emetteur_banque Nom banque emetteur cheque
- \param datesubend Date fin adhesion
- \return int rowid de l'entree ajoutee, <0 si erreur
+ * \brief Fonction qui insere la cotisation dans la base de donnees
+ * et eventuellement liens dans banques, mailman, etc...
+ * \param date Date d'effet de la cotisation
+ * \param montant Montant cotisation (accepte 0 pour les adherents non soumis e cotisation)
+ * \param account_id Id compte bancaire
+ * \param operation Type operation (si Id compte bancaire fourni)
+ * \param label Label operation (si Id compte bancaire fourni)
+ * \param num_chq Numero cheque (si Id compte bancaire fourni)
+ * \param emetteur_nom Nom emetteur cheque
+ * \param emetteur_banque Nom banque emetteur cheque
+ * \param datesubend Date fin adhesion
+ * \return int rowid de l'entree ajoutee, <0 si erreur
*/
function cotisation($date, $montant, $accountid=0, $operation='', $label='', $num_chq='', $emetteur_nom='', $emetteur_banque='', $datesubend=0)
{
diff --git a/htdocs/adherents/adherent_type.class.php b/htdocs/adherents/adherent_type.class.php
index 76ef4d06973..8d924454930 100644
--- a/htdocs/adherents/adherent_type.class.php
+++ b/htdocs/adherents/adherent_type.class.php
@@ -18,71 +18,71 @@
*/
/**
- \file htdocs/adherents/adherent_type.class.php
- \ingroup adherent
- \brief Fichier de la classe gérant les types d'adhérents
- \author Rodolphe Quiedeville
- \version $Id$
-*/
+ \file htdocs/adherents/adherent_type.class.php
+ \ingroup adherent
+ \brief Fichier de la classe gérant les types d'adhérents
+ \author Rodolphe Quiedeville
+ \version $Id$
+ */
require_once(DOL_DOCUMENT_ROOT."/commonobject.class.php");
/**
- \class AdherentType
- \brief Classe gérant les types d'adhérents
-*/
+ \class AdherentType
+ \brief Classe gérant les types d'adhérents
+ */
class AdherentType extends CommonObject
{
- var $error;
- var $errors=array();
- var $db;
- var $table_element = 'adherent_type';
+ var $error;
+ var $errors=array();
+ var $db;
+ var $table_element = 'adherent_type';
+
+ var $id;
+ var $libelle;
+ var $statut;
+ var $cotisation; /**< Soumis à la cotisation */
+ var $vote; /**< droit de vote ? */
+ var $note; /**< commentaire */
+ var $mail_valid; /**< mail envoye lors de la validation */
- var $id;
- var $libelle;
- var $statut;
- var $cotisation; /**< Soumis à la cotisation */
- var $vote; /**< droit de vote ? */
- var $note; /**< commentaire */
- var $mail_valid; /**< mail envoye lors de la validation */
-
/**
- \brief AdherentType
- \param DB handler accès base de données
- */
- function AdherentType($DB)
- {
- $this->db = $DB ;
- $this->statut = 1;
- }
+ \brief AdherentType
+ \param DB handler accès base de données
+ */
+ function AdherentType($DB)
+ {
+ $this->db = $DB ;
+ $this->statut = 1;
+ }
-/**
+ /**
\brief print_error_list
-*/
+ */
function print_error_list()
- {
- $num = sizeof($this->error);
- for ($i = 0 ; $i < $num ; $i++)
- {
- print "
';
dolibarr_print_object_info($paiement);
diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php
index 96ea184fb89..10652319fc4 100644
--- a/htdocs/html.form.class.php
+++ b/htdocs/html.form.class.php
@@ -2795,8 +2795,9 @@ class Form
* \param optionType Type de l'option: 1 pour des fonctions javascript
* \param option Valeur de l'option en fonction du type choisi
* \param translate Traduire la valeur
+ * \param maxlen Length maximum for labels
*/
- function select_array($htmlname, $array, $id='', $show_empty=0, $key_in_label=0, $value_as_key=0, $optionType=0, $option='', $translate=0)
+ function select_array($htmlname, $array, $id='', $show_empty=0, $key_in_label=0, $value_as_key=0, $optionType=0, $option='', $translate=0, $maxlen=0)
{
global $langs;
// \TODO Simplify optionType and option (only one should be necessary)
@@ -2827,12 +2828,14 @@ class Form
if ($key_in_label)
{
- $selectOptionValue = $key.' - '.($translate?$langs->trans($value):$value);
+ $newval=($translate?$langs->trans($value):$value);
+ $selectOptionValue = $key.' - '.($maxlen?dolibarr_trunc($newval,$maxlen):$newval);
print $selectOptionValue;
}
else
{
- $selectOptionValue = ($translate?$langs->trans($value):$value);
+ $newval=($translate?$langs->trans($value):$value);
+ $selectOptionValue = ($maxlen?dolibarr_trunc($newval,$maxlen):$newval);
if ($value == '' || $value == '-') { $selectOptionValue=' '; }
print $selectOptionValue;
}
diff --git a/htdocs/langs/en_US/banks.lang b/htdocs/langs/en_US/banks.lang
index cea31119d2e..155fbd1307f 100644
--- a/htdocs/langs/en_US/banks.lang
+++ b/htdocs/langs/en_US/banks.lang
@@ -121,4 +121,5 @@ TransactionWithOtherAccount=Account transfert
PaymentNumberUpdateSucceeded=Payment number updated succesfully
PaymentNumberUpdateFailed=Payment number could not be updated
PaymentDateUpdateSucceeded=Payment date update succesfully
-PaymentDateUpdateFailed=Payment date could not be updated
\ No newline at end of file
+PaymentDateUpdateFailed=Payment date could not be updated
+BankTransactionLine=Bank transaction
\ No newline at end of file
diff --git a/htdocs/langs/en_US/members.lang b/htdocs/langs/en_US/members.lang
index 78f2d502087..7d3c8240932 100644
--- a/htdocs/langs/en_US/members.lang
+++ b/htdocs/langs/en_US/members.lang
@@ -131,4 +131,4 @@ DescADHERENT_ETIQUETTE_TYPE=Labels format
DescADHERENT_CARD_HEADER_TEXT=Text printed on top of member cards
DescADHERENT_CARD_TEXT=Text printed on member cards
DescADHERENT_CARD_FOOTER_TEXT=Text printed on bottom of member cards
-
+ShowTypeCard=Show type %s
diff --git a/htdocs/langs/fr_FR/banks.lang b/htdocs/langs/fr_FR/banks.lang
index 926e19fa135..d0d01b9431e 100644
--- a/htdocs/langs/fr_FR/banks.lang
+++ b/htdocs/langs/fr_FR/banks.lang
@@ -121,4 +121,5 @@ TransactionWithOtherAccount=Transfert de compte
PaymentNumberUpdateSucceeded=Numéro de paiement mis à jour
PaymentNumberUpdateFailed=Impossible de mettre le numéro de paiement à jour
PaymentDateUpdateSucceeded=Date de paiement mise à jour
-PaymentDateUpdateFailed=Impossible de mettre la date de paiement à jour
\ No newline at end of file
+PaymentDateUpdateFailed=Impossible de mettre la date de paiement à jour
+BankTransactionLine=Ecriture bancaire
\ No newline at end of file
diff --git a/htdocs/langs/fr_FR/members.lang b/htdocs/langs/fr_FR/members.lang
index a2026950f26..46c6a629099 100644
--- a/htdocs/langs/fr_FR/members.lang
+++ b/htdocs/langs/fr_FR/members.lang
@@ -131,3 +131,4 @@ DescADHERENT_ETIQUETTE_TYPE=Format
DescADHERENT_CARD_HEADER_TEXT=Texte imprimé sur le haut des cartes adhérents
DescADHERENT_CARD_TEXT=Texte imprimé sur les cartes adhérents
DescADHERENT_CARD_FOOTER_TEXT=Texte imprimé sur le bas des cartes adhérents
+ShowTypeCard=Voir type %s
\ No newline at end of file