Merge pull request #10697 from ptibogxiv/patch-133
FIX dolibarize don.class.php
This commit is contained in:
commit
60d01771b3
@ -395,7 +395,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->db->escape($this->fk_soc)."'";
|
$sql.= ", '".$this->db->escape($this->socid)."'";
|
||||||
$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)."'";
|
||||||
@ -644,7 +644,7 @@ class Don extends CommonObject
|
|||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
$sql = "SELECT d.rowid, d.datec, d.date_valid, d.tms as datem, d.datedon,";
|
$sql = "SELECT d.rowid, d.datec, d.date_valid, d.tms as datem, d.datedon,";
|
||||||
$sql.= " d.fk_soc,d.firstname, d.lastname, d.societe, d.amount, d.fk_statut, d.address, d.zip, d.town, ";
|
$sql.= " d.fk_soc as socid,d.firstname, d.lastname, d.societe, d.amount, d.fk_statut, d.address, d.zip, d.town, ";
|
||||||
$sql.= " d.fk_country, d.country as country_olddata, d.public, d.amount, d.fk_payment, d.paid, d.note_private, d.note_public, d.email, d.phone, ";
|
$sql.= " d.fk_country, d.country as country_olddata, d.public, d.amount, d.fk_payment, d.paid, d.note_private, d.note_public, d.email, d.phone, ";
|
||||||
$sql.= " d.phone_mobile, d.fk_projet as fk_project, d.model_pdf,";
|
$sql.= " d.phone_mobile, d.fk_projet as fk_project, d.model_pdf,";
|
||||||
$sql.= " p.ref as project_ref,";
|
$sql.= " p.ref as project_ref,";
|
||||||
@ -674,11 +674,13 @@ class Don extends CommonObject
|
|||||||
|
|
||||||
$this->id = $obj->rowid;
|
$this->id = $obj->rowid;
|
||||||
$this->ref = $obj->rowid;
|
$this->ref = $obj->rowid;
|
||||||
|
$this->date_creation = $this->db->jdate($obj->datec);
|
||||||
$this->datec = $this->db->jdate($obj->datec);
|
$this->datec = $this->db->jdate($obj->datec);
|
||||||
$this->date_valid = $this->db->jdate($obj->date_valid);
|
$this->date_validation = $this->db->jdate($obj->date_valid);
|
||||||
|
$this->date_modification = $this->db->jdate($obj->datem);
|
||||||
$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->socid = $obj->socid;
|
||||||
$this->firstname = $obj->firstname;
|
$this->firstname = $obj->firstname;
|
||||||
$this->lastname = $obj->lastname;
|
$this->lastname = $obj->lastname;
|
||||||
$this->societe = $obj->societe;
|
$this->societe = $obj->societe;
|
||||||
@ -698,9 +700,9 @@ class Don extends CommonObject
|
|||||||
$this->fk_projet = $obj->fk_project; // deprecated
|
$this->fk_projet = $obj->fk_project; // deprecated
|
||||||
$this->fk_project = $obj->fk_project;
|
$this->fk_project = $obj->fk_project;
|
||||||
$this->public = $obj->public;
|
$this->public = $obj->public;
|
||||||
$this->modepaymentid = $obj->fk_payment;
|
$this->mode_reglement_id = $obj->fk_payment;
|
||||||
$this->modepaymentcode = $obj->payment_code;
|
$this->mode_reglement_code= $obj->payment_code;
|
||||||
$this->modepayment = $obj->payment_label;
|
$this->mode_reglement = $obj->payment_label;
|
||||||
$this->paid = $obj->paid;
|
$this->paid = $obj->paid;
|
||||||
$this->amount = $obj->amount;
|
$this->amount = $obj->amount;
|
||||||
$this->note_private = $obj->note_private;
|
$this->note_private = $obj->note_private;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user