From 46f7d95018a2ce0b1707fd972f0899a3dcc13773 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 10 Mar 2005 11:15:43 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20l'info=20du=20num=E9ro=20de=20facture?= =?UTF-8?q?=20dans=20les=20lignes=20de=20comm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/telephonie/communication.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/telephonie/communication.class.php b/htdocs/telephonie/communication.class.php index 9e32b2b2f5a..d6ba3de324d 100644 --- a/htdocs/telephonie/communication.class.php +++ b/htdocs/telephonie/communication.class.php @@ -193,7 +193,7 @@ class CommunicationTelephonique { $sql .= " (ligne, date, numero, duree"; $sql .= ", tarif_achat_temp, tarif_achat_fixe, tarif_vente_temp, tarif_vente_fixe"; $sql .= ", cout_achat, cout_vente, remise,dest, fourn_montant"; - $sql .= " , fichier_cdr, fk_fournisseur)"; + $sql .= " , fichier_cdr, fk_fournisseur, fk_facture)"; $sql .= " VALUES ("; $sql .= "'$this->ligne','".$db->idate($this->dateheure)."','$this->numero','$this->duree'"; @@ -201,7 +201,8 @@ class CommunicationTelephonique { $sql .= ", '$this->cout_temp_achat','$this->cout_fixe_achat','$this->cout_temp_vente','$this->cout_fixe_vente'"; $sql .= ", '$this->cout_achat','$this->cout_vente', '$this->remise'"; $sql .= ",'".addslashes($this->tarif_libelle_vente)."','$this->montant'"; - $sql .= ",'".$this->fichier_cdr."','".$this->fournisseur."')"; + $sql .= ",'".$this->fichier_cdr."','".$this->fournisseur."'"; + $sql .= ",'".$this->facture_id."')"; if (! $db->query($sql)) {