30require_once DOL_DOCUMENT_ROOT .
'/core/modules/stocktransfer/modules_stocktransfer.php';
42 public $version =
'dolibarr';
52 public $name =
'got2be';
62 global $conf, $langs, $db;
64 $langs->load(
"bills");
66 $form =
new Form($db);
68 $texte = $langs->trans(
'GenericNumRefModelDesc').
"<br>\n";
69 $texte .=
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
70 $texte .=
'<input type="hidden" name="token" value="'.newToken().
'">';
71 $texte .=
'<input type="hidden" name="action" value="updateMask">';
72 $texte .=
'<input type="hidden" name="maskconststocktransfer" value="STOCKTRANSFER_STOCKTRANSFER_ADVANCED_MASK">';
73 $texte .=
'<table class="nobordernopadding" width="100%">';
75 $tooltip = $langs->trans(
"GenericMaskCodes", $langs->transnoentities(
"StockTransfer"), $langs->transnoentities(
"StockTransfer"));
76 $tooltip .= $langs->trans(
"GenericMaskCodes2");
77 $tooltip .= $langs->trans(
"GenericMaskCodes3");
78 $tooltip .= $langs->trans(
"GenericMaskCodes4a", $langs->transnoentities(
"StockTransfer"), $langs->transnoentities(
"StockTransfer"));
79 $tooltip .= $langs->trans(
"GenericMaskCodes5");
82 $texte .=
'<tr><td>'.$langs->trans(
"Mask").
':</td>';
83 $texte .=
'<td class="right">'.$form->textwithpicto(
'<input type="text" class="flat" size="24" name="maskStockTransfer" value="'.
getDolGlobalString(
'STOCKTRANSFER_STOCKTRANSFER_ADVANCED_MASK').
'">', $tooltip, 1, 1).
'</td>';
85 $texte .=
'<td class="left" rowspan="2"> <input type="submit" class="button" value="'.$langs->trans(
"Modify").
'" name="Button"></td>';
102 global $conf, $db, $langs, $mysoc;
105 $object->initAsSpecimen();
118 $numExample = $langs->trans(
'NotConfigured');
133 require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
139 $this->error =
'NotConfigured';
143 $date = $object->date;
145 $numFinal =
get_next_value($db, $mask,
'stocktransfer_stocktransfer',
'ref',
'',
null, $date);
Parent class to manage numbering of StockTransfer.
Class to manage customer Bom numbering rules advanced.
getNextValue($object)
Return next free value.
info()
Returns the description of the numbering model.
getExample()
Return an example of numbering.
get_next_value($db, $mask, $table, $field, $where='', $objsoc='', $date='', $mode='next', $bentityon=true, $objuser=null, $forceentity=null)
Return last or next value for a mask (according to area we should not reset)
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.