2
0
forked from Wavyzz/dolibarr

Qual: Removed pdate

This commit is contained in:
Laurent Destailleur
2010-05-08 19:31:44 +00:00
parent bfdd9087ba
commit f7e30a0a5b
4 changed files with 24 additions and 24 deletions

View File

@@ -2190,9 +2190,9 @@ class Commande extends CommonObject
*/
function info($id)
{
$sql = 'SELECT c.rowid, '.$this->db->pdate('date_creation').' as datec,';
$sql.= ' '.$this->db->pdate('date_valid').' as datev,';
$sql.= ' '.$this->db->pdate('date_cloture').' as datecloture,';
$sql = 'SELECT c.rowid, date_creation as datec,';
$sql.= ' date_valid as datev,';
$sql.= ' date_cloture as datecloture,';
$sql.= ' fk_user_author, fk_user_valid, fk_user_cloture';
$sql.= ' FROM '.MAIN_DB_PREFIX.'commande as c';
$sql.= ' WHERE c.rowid = '.$id;
@@ -2224,9 +2224,9 @@ class Commande extends CommonObject
$this->user_cloture = $cluser;
}
$this->date_creation = $obj->datec;
$this->date_validation = $obj->datev;
$this->date_cloture = $obj->datecloture;
$this->date_creation = $this->db->jdate($obj->datec);
$this->date_validation = $this->db->jdate($obj->datev);
$this->date_cloture = $this->db->jdate($obj->datecloture);
}
$this->db->free($result);