|
@@ -539,7 +539,7 @@ class Expedition extends CommonObject
|
|
|
// Check parameters
|
|
|
if (empty($id) && empty($ref) && empty($ref_ext)) 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";
|
|
@@ -568,6 +568,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;
|