dolibarr  16.0.5
mod_lot_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 
41 
45  public $name = 'lot_free';
46 
47  public $code_modifiable; // Code modifiable
48 
49  public $code_modifiable_invalide; // Code modifiable si il est invalide
50 
51  public $code_modifiable_null; // Code modifiables si il est null
52 
53  public $code_null; // Code facultatif
54 
59  public $version = 'dolibarr'; // 'development', 'experimental', 'dolibarr'
60 
64  public $code_auto;
65 
66 
70  public function __construct()
71  {
72  $this->code_null = 1;
73  $this->code_modifiable = 1;
74  $this->code_modifiable_invalide = 1;
75  $this->code_modifiable_null = 1;
76  $this->code_auto = 0;
77  }
78 
79 
85  public function info()
86  {
87  global $langs;
88  $langs->load("companies");
89  return $langs->trans("LeopardNumRefModelDesc");
90  }
91 
92 
100  public function getNextValue($objsoc, $object)
101  {
102  global $langs;
103  return '';
104  }
105 }
mod_lot_free
Definition: mod_lot_free.php:32
mod_lot_free\info
info()
Return description of module.
Definition: mod_lot_free.php:85
ModeleNumRefBatch
Parent class to manage numbering of batch products.
Definition: modules_product_batch.class.php:72
mod_lot_free\getNextValue
getNextValue($objsoc, $object)
Return an example of result returned by getNextValue.
Definition: mod_lot_free.php:100
mod_lot_free\__construct
__construct()
Constructor.
Definition: mod_lot_free.php:70