From d47072e84e7d4a6f045e47a77ce81cb7bb721c65 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 29 Apr 2007 17:22:46 +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 --- .../modules/facture/pluton/pluton.modules.php | 109 +++++++++--------- 1 file changed, 52 insertions(+), 57 deletions(-) diff --git a/htdocs/includes/modules/facture/pluton/pluton.modules.php b/htdocs/includes/modules/facture/pluton/pluton.modules.php index 79ea736426f..12326595233 100644 --- a/htdocs/includes/modules/facture/pluton/pluton.modules.php +++ b/htdocs/includes/modules/facture/pluton/pluton.modules.php @@ -50,40 +50,45 @@ function info() { global $conf,$langs; - $langs->load("bills"); + $langs->load("bills"); + + $form = new Form($db); $texte = $langs->trans('PlutonNumRefModelDesc1')."
\n"; + $texte.= ''; - $texte.= 'Matrice de disposition des objets (prefix,mois,année,compteur...)'; - if ($conf->global->FACTURE_NUM_MATRICE) - { - $texte.= ' ('.$langs->trans('DefinedAndHasThisValue').' : '.$conf->global->FACTURE_NUM_MATRICE.')
'; - } - else - { - $texte.= ' ('.$langs->trans('IsNotDefined').')
'; - } + // Paramétrage de la matrice + $texte.= ''; + $texte.= ''; + $texte.= ''; + $texte.= ''; + $texte.= ''; + $texte.= ''; - $texte.= 'Préfix des factures'; - if ($conf->global->FACTURE_NUM_PREFIX) - { - $texte.= ' ('.$langs->trans('DefinedAndHasThisValue').' : '.$conf->global->FACTURE_NUM_PREFIX.')
'; - } - else - { - $texte.= ' ('.$langs->trans('IsNotDefined').')
'; - } + // Paramétrage du prefix des factures + $texte.= ''; + $texte.= ''; + $texte.= ''; + $texte.= ''; + $texte.= ''; + $texte.= ''; - $texte.= 'Préfix des avoirs'; - if ($conf->global->AVOIR_NUM_PREFIX) - { - $texte.= ' ('.$langs->trans('DefinedAndHasThisValue').' : '.$conf->global->AVOIR_NUM_PREFIX.')
'; - } - else - { - $texte.= ' ('.$langs->trans('IsNotDefined').')
'; - } + // Paramétrage du prefix des avoirs + $texte.= ''; + $texte.= ''; + $texte.= ''; + $texte.= ''; + $texte.= ''; + $texte.= ''; + // On détermine un offset sur le compteur + $texte.= ''; + $texte.= ''; + $texte.= ''; + $texte.= ''; + $texte.= ''; + $texte.= ''; + /* $texte.= 'Début année fiscale'; if ($conf->global->SOCIETE_FISCAL_MONTH_START) { @@ -93,37 +98,27 @@ function info() { $texte.= ' ('.$langs->trans('IsNotDefined').')
'; } + */ + // On défini si le compteur se remet à zero en debut d'année + $texte.= ''; + $texte.= ''; + $texte.= ''; + $texte.= ''; + $texte.= ''; - $texte.= 'Le compteur se remet à zéro en début d\'année'; - if ($conf->global->FACTURE_NUM_RESTART_BEGIN_YEAR) - { - $texte.= ' ('.$langs->trans('DefinedAndHasThisValue').' : '.$conf->global->FACTURE_NUM_RESTART_BEGIN_YEAR.')
'; - } - else - { - $texte.= ' ('.$langs->trans('IsNotDefined').')
'; - } - - $texte.= 'Un offset est appliqué sur le compteur'; - if ($conf->global->FACTURE_NUM_DELTA) - { - $texte.= ' ('.$langs->trans('DefinedAndHasThisValue').' : '.$conf->global->FACTURE_NUM_DELTA.')
'; - } - else - { - $texte.= ' ('.$langs->trans('IsNotDefined').')
'; - } - - $texte.= 'La numérotation des avoirs s\'incrémente avec les factures'; - if ($conf->global->AVOIR_NUM_WITH_INVOICE) - { - $texte.= ' ('.$langs->trans('DefinedAndHasThisValue').' : '.$conf->global->AVOIR_NUM_WITH_INVOICE.')
'; - } - else - { - $texte.= ' ('.$langs->trans('IsNotDefined').')
'; - } + // On défini si le compteur des avoirs s'incrémente avec les factures + $texte.= ''; + $texte.= ''; + $texte.= ''; + $texte.= ''; + $texte.= ''; + $texte.= '
Matrice de disposition des objets (prefix,mois,année,compteur...)
Préfix des factures
Préfix des avoirs
Un offset est appliqué sur le compteur
Le compteur se remet à zéro en début d\'année
'; + $texte.= $form->selectyesnonum('numrestart',$conf->global->FACTURE_NUM_RESTART_BEGIN_YEAR); + $texte.= '
La numérotation des avoirs s\'incrémente avec les factures
'; + $texte.= $form->selectyesnonum('numwithinvoice',$conf->global->AVOIR_NUM_WITH_INVOICE); + $texte.= '

'; + return $texte; }