2
0
forked from Wavyzz/dolibarr

Fix: on ne prend pas en compte le mois de janvier pour le debut d'anne fiscale car il est pris par defaut

This commit is contained in:
Regis Houssin
2007-05-28 19:47:21 +00:00
parent eebc13dd9a
commit c4745e1a81
12 changed files with 12 additions and 12 deletions

View File

@@ -90,7 +90,7 @@ class mod_commande_rubis extends ModeleNumRefCommandes
// D'abord on d<>fini l'ann<6E>e fiscale
$prefix='C';
$current_month = date("n");
if($conf->global->SOCIETE_FISCAL_MONTH_START && $current_month >= $conf->global->SOCIETE_FISCAL_MONTH_START)
if($conf->global->SOCIETE_FISCAL_MONTH_START > 1 && $current_month >= $conf->global->SOCIETE_FISCAL_MONTH_START)
{
$yy = strftime("%y",mktime(0,0,0,date("m"),date("d"),date("Y")+1));
}