Fetch_optionals into fetch commande
This commit is contained in:
parent
c988944f1a
commit
5d8e541292
@ -1340,6 +1340,16 @@ class Commande extends CommonOrder
|
|||||||
|
|
||||||
if ($this->statut == 0) $this->brouillon = 1;
|
if ($this->statut == 0) $this->brouillon = 1;
|
||||||
|
|
||||||
|
// Retreive all extrafield for invoice
|
||||||
|
// fetch optionals attributes and labels
|
||||||
|
if(!class_exists('Extrafields'))
|
||||||
|
require_once(DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php');
|
||||||
|
$extrafields=new ExtraFields($this->db);
|
||||||
|
$extralabels=$extrafields->fetch_name_optionals_label($this->table_element,true);
|
||||||
|
if (count($extralabels)>0) {
|
||||||
|
$this->fetch_optionals($this->id,$extralabels);
|
||||||
|
}
|
||||||
|
|
||||||
$this->db->free();
|
$this->db->free();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user