dolibarr  19.0.0-dev
mod_sn_free.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3  * Copyright (C) 2006-2009 Laurent Destailleur <eldy@users.sourceforge.net>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <https://www.gnu.org/licenses/>.
17  * or see https://www.gnu.org/
18  */
19 
26 require_once DOL_DOCUMENT_ROOT.'/core/modules/product_batch/modules_product_batch.class.php';
27 
33 {
34  /*
35  * Attention ce module est utilise par defaut si aucun module n'a
36  * ete definit dans la configuration
37  *
38  * Le fonctionnement de celui-ci doit donc rester le plus ouvert possible
39  */
40 
44  public $name = 'sn_free';
45 
46  public $code_modifiable; // Code modifiable
47 
48  public $code_modifiable_invalide; // Code modifiable si il est invalide
49 
50  public $code_modifiable_null; // Code modifiables si il est null
51 
52  public $code_null; // Code facultatif
53 
58  public $version = 'dolibarr'; // 'development', 'experimental', 'dolibarr'
59 
63  public $code_auto;
64 
65 
69  public function __construct()
70  {
71  $this->code_null = 1;
72  $this->code_modifiable = 1;
73  $this->code_modifiable_invalide = 1;
74  $this->code_modifiable_null = 1;
75  $this->code_auto = 0;
76  }
77 
78 
84  public function info()
85  {
86  global $langs;
87  $langs->load("companies");
88  return $langs->trans("LeopardNumRefModelDesc");
89  }
90 
91 
99  public function getNextValue($objsoc, $object)
100  {
101  global $langs;
102  return '';
103  }
104 }
Parent class to manage numbering of batch products.
info()
Return description of module.
Definition: mod_sn_free.php:84
__construct()
Constructor.
Definition: mod_sn_free.php:69
getNextValue($objsoc, $object)
Return an example of result returned by getNextValue.
Definition: mod_sn_free.php:99