try to fix sticker

This commit is contained in:
Christophe Battarel 2021-03-11 11:12:03 +01:00
parent eb0ce8aa0c
commit e8aacc7acf

View File

@ -36,9 +36,9 @@ require_once DOL_DOCUMENT_ROOT.'/core/modules/product_batch/modules_product_batc
class mod_lot_advanced extends ModeleNumRefBatch class mod_lot_advanced extends ModeleNumRefBatch
{ {
/** /**
* Dolibarr version of the loaded document * Dolibarr version of the loaded document
* @var string * @var string
*/ */
public $version = 'dolibarr'; // 'development', 'experimental', 'dolibarr' public $version = 'dolibarr'; // 'development', 'experimental', 'dolibarr'
/** /**
@ -52,14 +52,14 @@ class mod_lot_advanced extends ModeleNumRefBatch
public $name = 'lot_advanced'; public $name = 'lot_advanced';
/** /**
* Returns the description of the numbering model * Returns the description of the numbering model
* *
* @return string Texte descripif * @return string Texte descripif
*/ */
public function info() public function info()
{ {
global $conf, $langs, $db; global $conf, $langs, $db;
$langs->load("bills"); $langs->load("bills");
@ -90,22 +90,22 @@ class mod_lot_advanced extends ModeleNumRefBatch
$texte .= '</form>'; $texte .= '</form>';
return $texte; return $texte;
} }
/** /**
* Return an example of numbering * Return an example of numbering
* *
* @return string Example * @return string Example
*/ */
public function getExample() public function getExample()
{ {
global $conf, $langs, $mysoc; global $conf, $langs, $mysoc;
$old_code_client = $mysoc->code_client; $old_code_client = $mysoc->code_client;
$old_code_type = $mysoc->typent_code; $old_code_type = $mysoc->typent_code;
$mysoc->code_client = 'CCCCCCCCCC'; $mysoc->code_client = 'CCCCCCCCCC';
$mysoc->typent_code = 'TTTTTTTTTT'; $mysoc->typent_code = 'TTTTTTTTTT';
$numExample = $this->getNextValue($mysoc, ''); $numExample = $this->getNextValue($mysoc, '');
$mysoc->code_client = $old_code_client; $mysoc->code_client = $old_code_client;
$mysoc->typent_code = $old_code_type; $mysoc->typent_code = $old_code_type;