diff --git a/htdocs/reception/class/reception.class.php b/htdocs/reception/class/reception.class.php index 8bb29ddb0f6cd..25a6cc5c78cf9 100644 --- a/htdocs/reception/class/reception.class.php +++ b/htdocs/reception/class/reception.class.php @@ -432,7 +432,7 @@ public function fetch($id, $ref = '', $ref_ext = '') $sql = "SELECT e.rowid, e.entity, e.ref, e.fk_soc as socid, e.date_creation, e.ref_supplier, e.ref_ext, e.fk_user_author, e.fk_statut as status, e.billed"; $sql .= ", e.weight, e.weight_units, e.size, e.size_units, e.width, e.height"; - $sql .= ", e.date_reception as date_reception, e.model_pdf, e.date_delivery"; + $sql .= ", e.date_reception as date_reception, e.model_pdf, e.date_delivery, e.date_valid"; $sql .= ", e.fk_shipping_method, e.tracking_number"; $sql .= ", el.fk_source as origin_id, el.sourcetype as origin"; $sql .= ", e.note_private, e.note_public"; @@ -473,6 +473,7 @@ public function fetch($id, $ref = '', $ref_ext = '') $this->date = $this->db->jdate($obj->date_reception); // TODO deprecated $this->date_reception = $this->db->jdate($obj->date_reception); // Date real $this->date_delivery = $this->db->jdate($obj->date_delivery); // Date planned + $this->date_valid = $this->db->jdate($obj->date_valid); // Date validation $this->model_pdf = $obj->model_pdf; $this->shipping_method_id = $obj->fk_shipping_method; $this->tracking_number = $obj->tracking_number;