forked from Wavyzz/dolibarr
On configure le mois de dbut d'exercice dans configuration->socit
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2005-2006 Regis Houssin <regis@dolibarr.fr>
|
||||
* Copyright (C) 2005-2007 Regis Houssin <regis@dolibarr.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -53,20 +53,22 @@ class mod_commande_rubis extends ModeleNumRefCommandes
|
||||
*/
|
||||
function info()
|
||||
{
|
||||
global $conf;
|
||||
global $conf,$langs;
|
||||
|
||||
$texte = "Renvoie le num<75>ro sous la forme CYYNNNNN o<> YY est l'ann<6E>e et NNNNN le num<75>ro d'incr<63>ment qui commence <20> 1.<br>\n";
|
||||
$texte.= "L'ann<6E>e s'incr<63>mente de 1 SANS remise <20> zero en d<>but d'ann<6E>e d'exercice.<br>\n";
|
||||
$texte.= "D<EFBFBD>finir la variable SOCIETE_FISCAL_MONTH_START avec le mois du d<>but d'exercice, ex: 9 pour septembre.<br>\n";
|
||||
$texte.= "Dans cette exemple nous aurons au 1er septembre 2006 une commande nomm<6D>e C0700345.<br>\n";
|
||||
$langs->load("orders");
|
||||
|
||||
$texte = $langs->trans('RubisNumRefModelDesc1')."<br>\n";
|
||||
$texte.= $langs->trans('RubisNumRefModelDesc2')."<br>\n";
|
||||
$texte.= $langs->trans('RubisNumRefModelDesc3')."<br>\n";
|
||||
$texte.= $langs->trans('RubisNumRefModelDesc4')."<br>\n";
|
||||
|
||||
if ($conf->global->SOCIETE_FISCAL_MONTH_START)
|
||||
{
|
||||
$texte.= "SOCIETE_FISCAL_MONTH_START est d<>finie et vaut: ".$conf->global->SOCIETE_FISCAL_MONTH_START."";
|
||||
$texte.= ' ('.$langs->trans('DefinedAndHasThisValue').' : '.monthArrayOrSelected($conf->global->SOCIETE_FISCAL_MONTH_START).')';
|
||||
}
|
||||
else
|
||||
{
|
||||
$texte.= "SOCIETE_FISCAL_MONTH_START n'est pas d<>finie.";
|
||||
$texte.= ' ('.$langs->trans('IsNotDefined').')';
|
||||
}
|
||||
return $texte;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user