Update don.class.php

This commit is contained in:
ptibogxiv 2019-01-18 14:14:38 +01:00 committed by GitHub
parent 4b447d7799
commit 89e348515a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -367,7 +367,7 @@ class Don extends CommonObject
$sql.= ", entity"; $sql.= ", entity";
$sql.= ", amount"; $sql.= ", amount";
$sql.= ", fk_payment"; $sql.= ", fk_payment";
$sql.= ", fk_soc"; $sql.= ", fk_soc";
$sql.= ", firstname"; $sql.= ", firstname";
$sql.= ", lastname"; $sql.= ", lastname";
$sql.= ", societe"; $sql.= ", societe";
@ -390,7 +390,7 @@ class Don extends CommonObject
$sql.= ", ".$conf->entity; $sql.= ", ".$conf->entity;
$sql.= ", ".price2num($this->amount); $sql.= ", ".price2num($this->amount);
$sql.= ", ".($this->modepaymentid?$this->modepaymentid:"null"); $sql.= ", ".($this->modepaymentid?$this->modepaymentid:"null");
$sql.= ", '".$this->fk_soc."'"; $sql.= ", '".$this->fk_soc."'";
$sql.= ", '".$this->db->escape($this->firstname)."'"; $sql.= ", '".$this->db->escape($this->firstname)."'";
$sql.= ", '".$this->db->escape($this->lastname)."'"; $sql.= ", '".$this->db->escape($this->lastname)."'";
$sql.= ", '".$this->db->escape($this->societe)."'"; $sql.= ", '".$this->db->escape($this->societe)."'";
@ -673,7 +673,7 @@ class Don extends CommonObject
$this->date_valid = $this->db->jdate($obj->date_valid); $this->date_valid = $this->db->jdate($obj->date_valid);
$this->datem = $this->db->jdate($obj->datem); $this->datem = $this->db->jdate($obj->datem);
$this->date = $this->db->jdate($obj->datedon); $this->date = $this->db->jdate($obj->datedon);
$this->fk_soc = $obj->fk_soc; $this->fk_soc = $obj->fk_soc;
$this->firstname = $obj->firstname; $this->firstname = $obj->firstname;
$this->lastname = $obj->lastname; $this->lastname = $obj->lastname;
$this->societe = $obj->societe; $this->societe = $obj->societe;