From 07cf4220e5ffcb03c732423ebe1555dff47e77b0 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 30 Apr 2007 00:35:15 +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/includes/modules/facture/pluton/pluton.modules.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/includes/modules/facture/pluton/pluton.modules.php b/htdocs/includes/modules/facture/pluton/pluton.modules.php index df54195cf02..3826002c63f 100644 --- a/htdocs/includes/modules/facture/pluton/pluton.modules.php +++ b/htdocs/includes/modules/facture/pluton/pluton.modules.php @@ -339,7 +339,7 @@ function info() // On récupère le nombre de chiffres pour l'année $numbityear = $resultCount; // On défini le mois du début d'année fiscale - $fiscal_current_month = date("n"); + $current_month = date("n"); if (is_object($facture) && $facture->date) { @@ -347,11 +347,11 @@ function info() } else { - $create_month = $fiscal_current_month; + $create_month = $current_month; } // On change d'année fiscal si besoin - if($conf->global->SOCIETE_FISCAL_MONTH_START && $fiscal_current_month >= $conf->global->SOCIETE_FISCAL_MONTH_START && $create_month >= $conf->global->SOCIETE_FISCAL_MONTH_START) + if($conf->global->SOCIETE_FISCAL_MONTH_START && $current_month >= $conf->global->SOCIETE_FISCAL_MONTH_START && $create_month >= $conf->global->SOCIETE_FISCAL_MONTH_START) { $yy = substr(strftime("%Y",mktime(0,0,0,date("m"),date("d"),date("Y")+1)),$numbityear); }