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:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user