27require_once DOL_DOCUMENT_ROOT.
'/core/modules/supplier_order/modules_commandefournisseur.php';
39 public $version =
'dolibarr';
51 public $nom =
'Orchidee';
56 public $name =
'Orchidee';
65 public function info($langs)
70 $langs->loadLangs(array(
"bills",
"admin"));
72 $form =
new Form($db);
74 $texte = $langs->trans(
'GenericNumRefModelDesc').
"<br>\n";
75 $texte .=
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
76 $texte .=
'<input type="hidden" name="token" value="'.newToken().
'">';
77 $texte .=
'<input type="hidden" name="action" value="updateMask">';
78 $texte .=
'<input type="hidden" name="maskconstorder" value="COMMANDE_FOURNISSEUR_ORCHIDEE_MASK">';
79 $texte .=
'<table class="nobordernopadding" width="100%">';
81 $tooltip = $langs->trans(
"GenericMaskCodes", $langs->transnoentities(
"Order"), $langs->transnoentities(
"Order"));
82 $tooltip .= $langs->trans(
"GenericMaskCodes2");
83 $tooltip .= $langs->trans(
"GenericMaskCodes3");
84 $tooltip .= $langs->trans(
"GenericMaskCodes4a", $langs->transnoentities(
"Order"), $langs->transnoentities(
"Order"));
85 $tooltip .= $langs->trans(
"GenericMaskCodes5");
88 $texte .=
'<tr><td>'.$langs->trans(
"Mask").
':</td>';
89 $texte .=
'<td class="right">'.$form->textwithpicto(
'<input type="text" class="flat minwidth175" name="maskorder" value="'.
getDolGlobalString(
"COMMANDE_FOURNISSEUR_ORCHIDEE_MASK").
'">', $tooltip, 1, 1).
'</td>';
91 $texte .=
'<td class="left" rowspan="2"> <input type="submit" class="button button-edit reposition smallpaddingimp" name="Button"value="'.$langs->trans(
"Modify").
'"></td>';
108 global $conf, $langs, $mysoc;
110 $old_code_client = $mysoc->code_client;
111 $mysoc->code_client =
'CCCCCCCCCC';
113 $mysoc->code_client = $old_code_client;
116 $numExample = $langs->trans(
'NotConfigured');
132 require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
138 $this->error =
'NotConfigured';
142 $numFinal =
get_next_value($db, $mask,
'commande_fournisseur',
'ref',
'', $objsoc, $object->date_commande);
Parent Class of numbering models of suppliers orders references.
Classe du modele de numerotation de reference de commande fournisseur Orchidee.
getNextValue($objsoc=0, $object='')
Return next value.
info($langs)
Returns the description of the numbering model.
getExample()
Return an example of numbering.
commande_get_num($objsoc=0, $object='')
Renvoie la reference de commande suivante non utilisee.
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.