From bf6d081456245d74af904e84da98573c4e6d4182 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 24 Jun 2003 20:55:27 +0000 Subject: [PATCH] Affectation de la correspondance avec la propale --- htdocs/facture.class.php3 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/htdocs/facture.class.php3 b/htdocs/facture.class.php3 index 931316bfba3..78282371274 100644 --- a/htdocs/facture.class.php3 +++ b/htdocs/facture.class.php3 @@ -97,7 +97,12 @@ class Facture { if ( $this->db->query($sql) ) { $this->id = $this->db->last_insert_id(); - + + if ($this->id && $this->propalid) + { + $sql = "INSERT INTO llx_fa_pr (fk_facture, fk_propal) VALUES (".$this->id.",".$this->propalid.")"; + $this->db->query($sql); + } return $this->id; } else