From 01133206cca2d1b314c2ce03f4d3b42cb9be1615 Mon Sep 17 00:00:00 2001 From: erics Date: Sun, 18 Jan 2004 19:57:33 +0000 Subject: [PATCH] =?UTF-8?q?ajout=20de=20quotes=20pour=20les=20values=20his?= =?UTF-8?q?toire=20d'=E9viter=20quelques=20bugs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/facture/facture-rec.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/facture/facture-rec.class.php b/htdocs/compta/facture/facture-rec.class.php index 31d9ab0177e..ba99f786276 100644 --- a/htdocs/compta/facture/facture-rec.class.php +++ b/htdocs/compta/facture/facture-rec.class.php @@ -75,7 +75,7 @@ class FactureRec */ $sql = "INSERT INTO llx_facture_rec (titre, fk_soc, datec, amount, remise, remise_percent, note, fk_user_author,fk_projet, fk_cond_reglement) "; - $sql .= " VALUES ('$this->titre', $facsrc->socidp, now(), $facsrc->amount, $facsrc->remise, $facsrc->remise_percent, '$this->note',$user->id, $facsrc->projetid, $facsrc->cond_reglement_id)"; + $sql .= " VALUES ('$this->titre', '$facsrc->socidp', now(), '$facsrc->amount', '$facsrc->remise', '$facsrc->remise_percent', '$this->note','$user->id', '$facsrc->projetid', '$facsrc->cond_reglement_id')"; if ( $this->db->query($sql) ) { $this->id = $this->db->last_insert_id(); @@ -379,7 +379,7 @@ class FactureRec } $sql = "INSERT INTO llx_facturedet_rec (fk_facture,description,price,qty,tva_taux, fk_product, remise_percent, subprice, remise)"; - $sql .= " VALUES ($facid, '$desc', $price, $qty, $txtva, $fk_product, $remise_percent, $subprice, $remise) ;"; + $sql .= " VALUES ('$facid', '$desc', '$price', '$qty', '$txtva', '$fk_product', '$remise_percent', '$subprice', '$remise') ;"; if ( $this->db->query( $sql) ) {