26 require_once DOL_DOCUMENT_ROOT.
'/core/modules/reception/modules_reception.php';
33 public $version =
'dolibarr';
35 public $nom =
'Moonstone';
44 global $conf, $langs, $db;
46 $langs->load(
"bills");
50 $texte = $langs->trans(
'GenericNumRefModelDesc').
"<br>\n";
51 $texte .=
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
52 $texte .=
'<input type="hidden" name="token" value="'.newToken().
'">';
53 $texte .=
'<input type="hidden" name="action" value="updateMask">';
54 $texte .=
'<input type="hidden" name="maskconstreception" value="RECEPTION_MOONSTONE_MASK">';
55 $texte .=
'<table class="nobordernopadding" width="100%">';
57 $tooltip = $langs->trans(
"GenericMaskCodes", $langs->transnoentities(
"Reception"), $langs->transnoentities(
"Reception"));
58 $tooltip .= $langs->trans(
"GenericMaskCodes2");
59 $tooltip .= $langs->trans(
"GenericMaskCodes3");
60 $tooltip .= $langs->trans(
"GenericMaskCodes4a", $langs->transnoentities(
"Reception"), $langs->transnoentities(
"Reception"));
61 $tooltip .= $langs->trans(
"GenericMaskCodes5");
63 $texte .=
'<tr><td>'.$langs->trans(
"Mask").
':</td>';
64 $texte .=
'<td class="right">'.$form->textwithpicto(
'<input type="text" class="flat minwidth175" name="maskreception" value="'.
getDolGlobalString(
"RECEPTION_MOONSTONE_MASK").
'">', $tooltip, 1, 1).
'</td>';
65 $texte .=
'<td class="left" rowspan="2"> <input type="submit" class="button button-edit" name="Button" value="'.$langs->trans(
"Modify").
'"></td>';
80 global $conf, $langs, $mysoc;
82 $old_code_client = $mysoc->code_client;
83 $old_code_type = $mysoc->typent_code;
84 $mysoc->code_client =
'CCCCCCCCCC';
85 $mysoc->typent_code =
'TTTTTTTTTT';
87 $mysoc->code_client = $old_code_client;
88 $mysoc->typent_code = $old_code_type;
91 $numExample = $langs->trans(
'NotConfigured');
107 require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
112 $this->error =
'NotConfigured';
116 $date = $reception->date_reception;
118 $numFinal =
get_next_value($db, $mask,
'reception',
'ref',
'', $objsoc, $date);