25require_once DOL_DOCUMENT_ROOT.
'/core/class/html.form.class.php';
 
   26require_once DOL_DOCUMENT_ROOT.
'/commande/class/commande.class.php';
 
   61    foreach ($statustohow as $key => $value) {
 
   62      $tmpsupplierorder->statut = $key;
 
   63      $options[$value] = $tmpsupplierorder->getLibStatut($short);
 
   66    if (is_array($selected)) {
 
   67      $selectedarray = $selected;
 
   69      $selectedarray = explode(
',', $selected);
 
 
   95    $tmpsupplierorder = 
new Commande($this->db);
 
   97    foreach ($statustohow as $value) {
 
   98      $tmpsupplierorder->statut = $value;
 
   99      $options[$value] = $tmpsupplierorder->getLibStatut($short);
 
  102    if (is_array($selected)) {
 
  103      $selectedarray = $selected;
 
  105      $selectedarray = explode(
',', $selected);
 
 
  124    $listofmethods = array();
 
  126    $sql = 
"SELECT rowid, code, libelle as label";
 
  127    $sql .= 
" FROM ".$this->db->prefix().
"c_input_method";
 
  128    $sql .= 
" WHERE active = 1";
 
  130    dol_syslog(get_class($this).
"::selectInputMethod", LOG_DEBUG);
 
  131    $resql = $this->db->query($sql);
 
  138    while ($obj = $this->db->fetch_object($resql)) {
 
  139      $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.