From dbbac6fc75a42f8bfc502c4e5b55f2a590afcce4 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 29 Apr 2007 21:03:45 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20fonctionnalit=E9es=20sur=20le=20mo?= =?UTF-8?q?dele=20de=20num=E9rotation=20param=E9trable=20"pluton"=20-=20to?= =?UTF-8?q?ujours=20en=20phase=20de=20test=20!!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/html.form.class.php | 47 ++++++++++++++++++- .../modules/facture/pluton/pluton.modules.php | 23 +++++---- 2 files changed, 57 insertions(+), 13 deletions(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index da3be61e0ee..33f3c184437 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -2999,7 +2999,7 @@ class Form return 1; } - /** + /** * \brief Retourne la liste des modéles d'export * \param selected Id modéle présélectionné * \param htmlname Nom de la zone select @@ -3045,6 +3045,51 @@ class Form dolibarr_print_error($this->db); } } + + /** + * \brief Retourne la liste des mois + * \param selected Id mois présélectionné + * \param htmlname Nom de la zone select + * \param useempty Affiche valeur vide dans liste + */ + function select_month($selected='',$htmlname='monthid',$useempty=0) + { + global $langs; + $langs->load("main"); + + $month = array (1=>"January", + 2=>"February", + 3=>"March", + 4=>"April", + 5=>"May", + 6=>"June", + 7=>"July", + 8=>"August", + 9=>"September", + 10=>"October", + 11=>"November", + 12=>"December" + ); + + print ''; + } } diff --git a/htdocs/includes/modules/facture/pluton/pluton.modules.php b/htdocs/includes/modules/facture/pluton/pluton.modules.php index 12326595233..937fdcba1f8 100644 --- a/htdocs/includes/modules/facture/pluton/pluton.modules.php +++ b/htdocs/includes/modules/facture/pluton/pluton.modules.php @@ -82,23 +82,22 @@ function info() $texte.= ''; // On détermine un offset sur le compteur - $texte.= 'Un offset est appliqué sur le compteur'; + $texte.= 'Appliquer un offset sur le compteur'; $texte.= '
'; $texte.= ''; $texte.= ''; $texte.= ''; $texte.= '
'; - /* - $texte.= 'Début année fiscale'; - if ($conf->global->SOCIETE_FISCAL_MONTH_START) - { - $texte.= ' ('.$langs->trans('DefinedAndHasThisValue').' : '.$conf->global->SOCIETE_FISCAL_MONTH_START.')
'; - } - else - { - $texte.= ' ('.$langs->trans('IsNotDefined').')
'; - } - */ + + // On défini si le debut d'année fiscale + $texte.= 'Début d\'année fiscale'; + $texte.= '
'; + $texte.= ''; + $texte.= ''; + $texte.= $form->select_month($conf->global->SOCIETE_FISCAL_MONTH_START,'fiscalmonth',1); + $texte.= ''; + $texte.= '
'; + // On défini si le compteur se remet à zero en debut d'année $texte.= 'Le compteur se remet à zéro en début d\'année'; $texte.= '
';