|
@@ -529,7 +529,7 @@ class Expedition extends CommonObject
|
|
|
// Check parameters
|
|
|
if (empty($id) && empty($ref) && empty($ref_ext) && empty($ref_int)) return -1;
|
|
|
|
|
|
- $sql = "SELECT e.rowid, e.ref, e.fk_soc as socid, e.date_creation, e.ref_customer, e.ref_ext, e.ref_int, e.fk_user_author, e.fk_statut, e.fk_projet as fk_project, e.billed";
|
|
|
+ $sql = "SELECT e.rowid, e.entity, e.ref, e.fk_soc as socid, e.date_creation, e.ref_customer, e.ref_ext, e.ref_int, e.fk_user_author, e.fk_statut, e.fk_projet as fk_project, e.billed";
|
|
|
$sql.= ", e.date_valid";
|
|
|
$sql.= ", e.weight, e.weight_units, e.size, e.size_units, e.width, e.height";
|
|
|
$sql.= ", e.date_expedition as date_expedition, e.model_pdf, e.fk_address, e.date_delivery";
|
|
@@ -558,6 +558,7 @@ class Expedition extends CommonObject
|
|
|
$obj = $this->db->fetch_object($result);
|
|
|
|
|
|
$this->id = $obj->rowid;
|
|
|
+ $this->entity = $obj->entity;
|
|
|
$this->ref = $obj->ref;
|
|
|
$this->socid = $obj->socid;
|
|
|
$this->ref_customer = $obj->ref_customer;
|
|
@@ -602,7 +603,7 @@ class Expedition extends CommonObject
|
|
|
$this->fk_incoterms = $obj->fk_incoterms;
|
|
|
$this->location_incoterms = $obj->location_incoterms;
|
|
|
$this->libelle_incoterms = $obj->libelle_incoterms;
|
|
|
-
|
|
|
+
|
|
|
$this->db->free($result);
|
|
|
|
|
|
if ($this->statut == self::STATUS_DRAFT) $this->brouillon = 1;
|