26 require_once DOL_DOCUMENT_ROOT.
'/core/modules/expedition/modules_expedition.php';
37 public $version =
'dolibarr';
49 public $nom =
'Ribera';
54 public $name =
'Ribera';
63 global $conf, $langs, $db;
65 $langs->load(
"bills");
69 $texte = $langs->trans(
'GenericNumRefModelDesc').
"<br>\n";
70 $texte .=
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
71 $texte .=
'<input type="hidden" name="token" value="'.newToken().
'">';
72 $texte .=
'<input type="hidden" name="action" value="updateMask">';
73 $texte .=
'<input type="hidden" name="maskconstexpedition" value="EXPEDITION_RIBERA_MASK">';
74 $texte .=
'<table class="nobordernopadding" width="100%">';
76 $tooltip = $langs->trans(
"GenericMaskCodes", $langs->transnoentities(
"Shipment"), $langs->transnoentities(
"Shipment"));
77 $tooltip .= $langs->trans(
"GenericMaskCodes2");
78 $tooltip .= $langs->trans(
"GenericMaskCodes3");
79 $tooltip .= $langs->trans(
"GenericMaskCodes4a", $langs->transnoentities(
"Shipment"), $langs->transnoentities(
"Shipment"));
80 $tooltip .= $langs->trans(
"GenericMaskCodes5");
82 $texte .=
'<tr><td>'.$langs->trans(
"Mask").
':</td>';
83 $texte .=
'<td class="right">'.$form->textwithpicto(
'<input type="text" class="flat minwidth175" name="maskexpedition" value="'.
getDolGlobalString(
'EXPEDITION_RIBERA_MASK').
'">', $tooltip, 1, 1).
'</td>';
84 $texte .=
'<td class="left" rowspan="2"> <input type="submit" class="button button-edit" name="Button" value="'.$langs->trans(
"Modify").
'"></td>';
99 global $conf, $langs, $mysoc;
101 $old_code_client = $mysoc->code_client;
102 $old_code_type = $mysoc->typent_code;
103 $mysoc->code_client =
'CCCCCCCCCC';
104 $mysoc->typent_code =
'TTTTTTTTTT';
106 $mysoc->code_client = $old_code_client;
107 $mysoc->typent_code = $old_code_type;
110 $numExample = $langs->trans(
'NotConfigured');
126 require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
131 $this->error =
'NotConfigured';
135 $date = $shipment->date_expedition;
137 $numFinal =
get_next_value($db, $mask,
'expedition',
'ref',
'', $objsoc, $date);