2
0
forked from Wavyzz/dolibarr

remove pgsql warning on date insert

This commit is contained in:
Florian Henry
2013-07-10 10:30:33 +02:00
parent 0b28ab9dde
commit 4aa966f7ad

View File

@@ -636,7 +636,7 @@ class Commande extends CommonOrder
$sql.= ", remise_absolue, remise_percent";
$sql.= ", entity";
$sql.= ")";
$sql.= " VALUES ('(PROV)',".$this->socid.", ".$this->db->idate($now).", ".$user->id;
$sql.= " VALUES ('(PROV)',".$this->socid.", '".$this->db->idate($now)."', ".$user->id;
$sql.= ", ".($this->fk_project?$this->fk_project:"null");
$sql.= ", ".$this->db->idate($date);
$sql.= ", ".($this->source>=0 && $this->source != '' ?$this->source:'null');