2
0
forked from Wavyzz/dolibarr

Ajout de fonctionnalites sur le modele de numrotation paramtrable "pluton" - toujours en phase de test !!

This commit is contained in:
Regis Houssin
2007-04-29 17:22:46 +00:00
parent 6697998890
commit d47072e84e

View File

@@ -50,40 +50,45 @@ function info()
{
global $conf,$langs;
$langs->load("bills");
$langs->load("bills");
$form = new Form($db);
$texte = $langs->trans('PlutonNumRefModelDesc1')."<br>\n";
$texte.= '<table class="nobordernopadding" width="100%">';
$texte.= 'Matrice de disposition des objets (prefix,mois,ann<6E>e,compteur...)';
if ($conf->global->FACTURE_NUM_MATRICE)
{
$texte.= ' ('.$langs->trans('DefinedAndHasThisValue').' : '.$conf->global->FACTURE_NUM_MATRICE.')<br>';
}
else
{
$texte.= ' ('.$langs->trans('IsNotDefined').')<br>';
}
// Param<61>trage de la matrice
$texte.= '<tr><td>Matrice de disposition des objets (prefix,mois,ann<6E>e,compteur...)</td>';
$texte.= '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
$texte.= '<input type="hidden" name="action" value="updateMatrice">';
$texte.= '<td align="right"><input type="text" class="flat" size="30" name="matrice" value="'.$conf->global->FACTURE_NUM_MATRICE.'"></td>';
$texte.= '<td align="left"><input type="submit" class="button" value="'.$langs->trans("modify").'" name="Button"></td>';
$texte.= '</tr></form>';
$texte.= 'Pr<50>fix des factures';
if ($conf->global->FACTURE_NUM_PREFIX)
{
$texte.= ' ('.$langs->trans('DefinedAndHasThisValue').' : '.$conf->global->FACTURE_NUM_PREFIX.')<br>';
}
else
{
$texte.= ' ('.$langs->trans('IsNotDefined').')<br>';
}
// Param<61>trage du prefix des factures
$texte.= '<tr><td>Pr<50>fix des factures</td>';
$texte.= '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
$texte.= '<input type="hidden" name="action" value="updatePrefixFacture">';
$texte.= '<td align="right"><input type="text" class="flat" size="30" name="prefixfacture" value="'.$conf->global->FACTURE_NUM_PREFIX.'"></td>';
$texte.= '<td align="left"><input type="submit" class="button" value="'.$langs->trans("modify").'" name="Button"></td>';
$texte.= '</tr></form>';
$texte.= 'Pr<50>fix des avoirs';
if ($conf->global->AVOIR_NUM_PREFIX)
{
$texte.= ' ('.$langs->trans('DefinedAndHasThisValue').' : '.$conf->global->AVOIR_NUM_PREFIX.')<br>';
}
else
{
$texte.= ' ('.$langs->trans('IsNotDefined').')<br>';
}
// Param<61>trage du prefix des avoirs
$texte.= '<tr><td>Pr<50>fix des avoirs</td>';
$texte.= '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
$texte.= '<input type="hidden" name="action" value="updatePrefixAvoir">';
$texte.= '<td align="right"><input type="text" class="flat" size="30" name="prefixavoir" value="'.$conf->global->AVOIR_NUM_PREFIX.'"></td>';
$texte.= '<td align="left"><input type="submit" class="button" value="'.$langs->trans("modify").'" name="Button"></td>';
$texte.= '</tr></form>';
// On d<>termine un offset sur le compteur
$texte.= '<tr><td>Un offset est appliqu<71> sur le compteur</td>';
$texte.= '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
$texte.= '<input type="hidden" name="action" value="setOffset">';
$texte.= '<td align="right"><input type="text" class="flat" size="30" name="offset" value="'.$conf->global->FACTURE_NUM_DELTA.'"></td>';
$texte.= '<td align="left"><input type="submit" class="button" value="'.$langs->trans("modify").'" name="Button"></td>';
$texte.= '</tr></form>';
/*
$texte.= 'D<>but ann<6E>e fiscale';
if ($conf->global->SOCIETE_FISCAL_MONTH_START)
{
@@ -93,37 +98,27 @@ function info()
{
$texte.= ' ('.$langs->trans('IsNotDefined').')<br>';
}
*/
// On d<>fini si le compteur se remet <20> zero en debut d'ann<6E>e
$texte.= '<tr><td>Le compteur se remet <20> z<>ro en d<>but d\'ann<6E>e</td>';
$texte.= '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
$texte.= '<input type="hidden" name="action" value="setNumRestart">';
$texte.= '<td align="right">';
$texte.= $form->selectyesnonum('numrestart',$conf->global->FACTURE_NUM_RESTART_BEGIN_YEAR);
$texte.= '</td><td align="left"><input type="submit" class="button" value="'.$langs->trans("modify").'" name="Button"></td>';
$texte.= '</tr></form>';
$texte.= 'Le compteur se remet <20> z<>ro en d<>but d\'ann<6E>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>';
}
$texte.= 'Un offset est appliqu<71> sur le compteur';
if ($conf->global->FACTURE_NUM_DELTA)
{
$texte.= ' ('.$langs->trans('DefinedAndHasThisValue').' : '.$conf->global->FACTURE_NUM_DELTA.')<br>';
}
else
{
$texte.= ' ('.$langs->trans('IsNotDefined').')<br>';
}
$texte.= 'La num<75>rotation des avoirs s\'incr<63>mente avec les factures';
if ($conf->global->AVOIR_NUM_WITH_INVOICE)
{
$texte.= ' ('.$langs->trans('DefinedAndHasThisValue').' : '.$conf->global->AVOIR_NUM_WITH_INVOICE.')<br>';
}
else
{
$texte.= ' ('.$langs->trans('IsNotDefined').')<br>';
}
// On d<>fini si le compteur des avoirs s'incr<63>mente avec les factures
$texte.= '<tr><td>La num<75>rotation des avoirs s\'incr<63>mente avec les factures</td>';
$texte.= '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
$texte.= '<input type="hidden" name="action" value="setNumWithInvoice">';
$texte.= '<td align="right">';
$texte.= $form->selectyesnonum('numwithinvoice',$conf->global->AVOIR_NUM_WITH_INVOICE);
$texte.= '</td><td align="left"><input type="submit" class="button" value="'.$langs->trans("modify").'" name="Button"></td>';
$texte.= '</tr></form>';
$texte.= '</table><br>';
return $texte;
}