New: A generic order numbering module (depreciate all others)

This commit is contained in:
Laurent Destailleur
2008-03-05 22:20:30 +00:00
parent f7d61cac0c
commit 2a90226b61
11 changed files with 232 additions and 399 deletions

View File

@@ -16,16 +16,13 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* or see http://www.gnu.org/
*
* $Id$
* $Source$
*/
/**
\file htdocs/includes/modules/commande/mod_commande_marbre.php
\ingroup commande
\brief Fichier contenant la classe du mod<6F>le de num<75>rotation de r<>f<EFBFBD>rence de commande Marbre
\version $Revision$
\version $Id$
*/
require_once(DOL_DOCUMENT_ROOT ."/includes/modules/commande/modules_commande.php");
@@ -36,17 +33,11 @@ require_once(DOL_DOCUMENT_ROOT ."/includes/modules/commande/modules_commande.php
class mod_commande_marbre extends ModeleNumRefCommandes
{
var $version='dolibarr'; // 'development', 'experimental', 'dolibarr'
var $prefix='CO';
var $error='';
/*
* \brief Constructeur
*/
function mod_commande_marbre()
{
$this->nom = "Marbre";
}
var $nom='Marbre';
/** \brief Renvoi la description du modele de num<75>rotation
* \return string Texte descripif
@@ -92,10 +83,12 @@ class mod_commande_marbre extends ModeleNumRefCommandes
return true;
}
/** \brief Renvoi prochaine valeur attribu<62>e
* \return string Valeur
*/
function getNextValue()
/** \brief Return next value
* \param objsoc Objet third party
* \param commande Object order
* \return string Value if OK, 0 if KO
*/
function getNextValue($objsoc=0,$commande)
{
global $db;