Fix: pgsql compatibility

This commit is contained in:
Laurent Destailleur 2011-09-10 23:53:22 +00:00
parent e4ff4d8e80
commit 8426d806f0

View File

@ -232,7 +232,7 @@ class Facture extends CommonObject
$sql.= ", ".$conf->entity;
$sql.= ", '".$this->type."'";
$sql.= ", '".$socid."'";
$sql.= ", ".$this->db->idate($now);
$sql.= ", '".$this->db->idate($now)."'";
$sql.= ", '".$totalht."'";
$sql.= ",".($this->remise_absolue>0?$this->remise_absolue:'NULL');
$sql.= ",".($this->remise_percent>0?$this->remise_percent:'NULL');