Début ajout d'un modèle de numérotation paramétrable
This commit is contained in:
parent
759c9a1b6e
commit
3af4136ffe
@ -50,14 +50,46 @@ function info()
|
|||||||
|
|
||||||
$texte = $langs->trans('PlutonNumRefModelDesc1')."<br>\n";
|
$texte = $langs->trans('PlutonNumRefModelDesc1')."<br>\n";
|
||||||
|
|
||||||
|
$texte.= 'Début année fiscale';
|
||||||
if ($conf->global->SOCIETE_FISCAL_MONTH_START)
|
if ($conf->global->SOCIETE_FISCAL_MONTH_START)
|
||||||
{
|
{
|
||||||
$texte.= ' ('.$langs->trans('DefinedAndHasThisValue').' : '.$conf->global->SOCIETE_FISCAL_MONTH_START.')';
|
$texte.= ' ('.$langs->trans('DefinedAndHasThisValue').' : '.$conf->global->SOCIETE_FISCAL_MONTH_START.')<br>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$texte.= ' ('.$langs->trans('IsNotDefined').')';
|
$texte.= ' ('.$langs->trans('IsNotDefined').')<br>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$texte.= 'Préfix de la facture';
|
||||||
|
if ($conf->global->FACTURE_NUM_PREFIX)
|
||||||
|
{
|
||||||
|
$texte.= ' ('.$langs->trans('DefinedAndHasThisValue').' : '.$conf->global->FACTURE_NUM_PREFIX.')<br>';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$texte.= ' ('.$langs->trans('IsNotDefined').')<br>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$texte.= 'Nombre de chiffres sur le compteur';
|
||||||
|
if ($conf->global->FACTURE_NUM_QUANTIFY_METER)
|
||||||
|
{
|
||||||
|
$texte.= ' ('.$langs->trans('DefinedAndHasThisValue').' : '.$conf->global->FACTURE_NUM_QUANTIFY_METER.')<br>';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$texte.= ' ('.$langs->trans('IsNotDefined').')<br>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$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.')<br>';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$texte.= ' ('.$langs->trans('IsNotDefined').')<br>';
|
||||||
|
}
|
||||||
|
|
||||||
return $texte;
|
return $texte;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,7 +142,7 @@ function info()
|
|||||||
$fayy='';
|
$fayy='';
|
||||||
$sql = "SELECT MAX(facnumber)";
|
$sql = "SELECT MAX(facnumber)";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."facture";
|
$sql.= " FROM ".MAIN_DB_PREFIX."facture";
|
||||||
if ($conf->global->FACTURE_NUM_RESTART_BEGIN_YEAR) $sql.= " WHERE facnumber like '${fisc}%'";
|
if ($conf->global->FACTURE_NUM_RESTART_BEGIN_YEAR == 1) $sql.= " WHERE facnumber like '${fisc}%'";
|
||||||
$resql=$db->query($sql);
|
$resql=$db->query($sql);
|
||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user