Fix PHPunit

This commit is contained in:
Laurent Destailleur 2017-08-27 13:38:42 +02:00
parent 64bbf35812
commit 6c93c6f6cc

View File

@ -1391,7 +1391,7 @@ class FactureLigneRec extends CommonInvoiceLine
} }
$sql = "UPDATE ".MAIN_DB_PREFIX."facturedet_rec SET "; $sql = "UPDATE ".MAIN_DB_PREFIX."facturedet_rec SET ";
$sql.= " fk_facture = '".$this->fk_facture."'"; $sql.= " fk_facture = ".$this->fk_facture;
$sql.= ", label=".(! empty($this->label)?"'".$this->db->escape($this->label)."'":"null"); $sql.= ", label=".(! empty($this->label)?"'".$this->db->escape($this->label)."'":"null");
$sql.= ", description='".$this->db->escape($this->desc)."'"; $sql.= ", description='".$this->db->escape($this->desc)."'";
$sql.= ", price=".price2num($this->price); $sql.= ", price=".price2num($this->price);