From e361c053d1707a33f4cef118f438c0b0350b13fb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 2 May 2004 13:40:27 +0000 Subject: [PATCH] =?UTF-8?q?La=20mise=20a=20jour=20du=20champ=20fk=5Fbank?= =?UTF-8?q?=20dans=20le=20paiement=20faisant=20le=20lien=20entre=20un=20pa?= =?UTF-8?q?iement=20et=20l'=E9criture=20dans=20le=20compte=20se=20fait=20d?= =?UTF-8?q?or=E9navant=20aussi=20bien=20pour=20les=20paiements=20fournisse?= =?UTF-8?q?urs=20que=20clients.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/paiement.class.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/htdocs/paiement.class.php b/htdocs/paiement.class.php index c1e6697f97f..b8a4645207d 100644 --- a/htdocs/paiement.class.php +++ b/htdocs/paiement.class.php @@ -204,6 +204,25 @@ class Paiement return 0; } } + + /* + * Mise a jour du lien entre le paiement et la ligne dans llx_bank générée + * + */ + Function update_fk_bank($id_bank) + { + $sql = "UPDATE llx_paiement set fk_bank = ".$id_bank." where rowid = ".$this->id; + $result = $this->db->query($sql); + if ($result) + { + return 1; + } + else { + print $this->db->error() ."
".$sql; + return 0; + } + } + /* * Information sur l'objet *