26require_once DOL_DOCUMENT_ROOT.
'/core/class/html.form.class.php';
27require_once DOL_DOCUMENT_ROOT.
'/commande/class/commande.class.php';
63 foreach ($statustohow as $key => $value) {
64 $tmpsupplierorder->statut = $key;
65 $tmpsupplierorder->status = $key;
66 $options[$value] = $tmpsupplierorder->getLibStatut($short);
69 if (is_array($selected)) {
70 $selectedarray = $selected;
72 $selectedarray = explode(
',', $selected);
75 if (!empty($selectedarray[6])) {
76 unset($selectedarray[6]);
77 unset($selectedarray[7]);
78 $selectedarray[
'6,7'] =
'6,7';
84 print
Form::selectarray($htmlname, $options, $selectedarray, 0, 0, 0,
'', 0, 0, 0,
'', $morecss);
100 $statustohow = array(
108 $tmpsupplierorder =
new Commande($this->db);
110 foreach ($statustohow as $value) {
111 $tmpsupplierorder->statut = $value;
112 $options[$value] = $tmpsupplierorder->getLibStatut($short);
115 if (is_array($selected)) {
116 $selectedarray = $selected;
118 $selectedarray = explode(
',', $selected);
137 $listofmethods = array();
139 $sql =
"SELECT rowid, code, libelle as label";
140 $sql .=
" FROM ".$this->db->prefix().
"c_input_method";
141 $sql .=
" WHERE active = 1";
143 dol_syslog(get_class($this).
"::selectInputMethod", LOG_DEBUG);
144 $resql = $this->db->query($sql);
151 while ($obj = $this->db->fetch_object($resql)) {
152 $listofmethods[$obj->rowid] = $langs->trans($obj->code) != $obj->code ? $langs->trans($obj->code) : $obj->label;
Class to manage predefined suppliers products.
Class to manage customers orders.
const STATUS_SHIPMENTONPROCESS
Shipment on process.
const STATUS_CLOSED
Closed (Sent, billed or not)
const STATUS_CANCELED
Canceled status.
const STATUS_DRAFT
Draft status.
const STATUS_VALIDATED
Validated status.
dol_print_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.