Skip to content

Commit

Permalink
Add fin_validite, date_cloture in fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
defrance committed Mar 15, 2017
1 parent 4c0ff38 commit 4e1799b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion htdocs/contrat/class/contrat.class.php
Expand Up @@ -496,7 +496,7 @@ function fetch($id,$ref='')
$sql.= " ref_supplier, ref_customer,";
$sql.= " ref_ext,";
$sql.= " fk_user_mise_en_service, date_contrat as datecontrat,";
$sql.= " fk_user_author,";
$sql.= " fk_user_author, fin_validite, date_cloture,";
$sql.= " fk_projet,";
$sql.= " fk_commercial_signature, fk_commercial_suivi,";
$sql.= " note_private, note_public, model_pdf, extraparams";
Expand Down Expand Up @@ -527,6 +527,10 @@ function fetch($id,$ref='')
$this->date_contrat = $this->db->jdate($result["datecontrat"]);
$this->date_creation = $this->db->jdate($result["datecontrat"]);

$this->fin_validite = $this->db->jdate($result["fin_validite"]);
$this->date_cloture = $this->db->jdate($result["date_cloture"]);


$this->user_author_id = $result["fk_user_author"];

$this->commercial_signature_id = $result["fk_commercial_signature"];
Expand Down

0 comments on commit 4e1799b

Please sign in to comment.