From 40702c647f78f5a86bb6c05b086affa8e490677d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 15 May 2007 23:08:23 +0000 Subject: [PATCH] Fix: La regeneration des factures doit se faire sur la liste des factures du paiement. --- htdocs/paiement.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/paiement.class.php b/htdocs/paiement.class.php index cd5dbd4ef26..6825f10bf62 100644 --- a/htdocs/paiement.class.php +++ b/htdocs/paiement.class.php @@ -314,14 +314,16 @@ class Paiement function valide() { $sql = 'UPDATE '.MAIN_DB_PREFIX.'paiement SET statut = 1 WHERE rowid = '.$this->id; + + dolibarr_syslog('Paiement::valide sql='.$sql); $result = $this->db->query($sql); if ($result) { - return 0; + return 1; } else { - dolibarr_syslog('Paiement::Valide Error -1'); + dolibarr_syslog('Paiement::valide Error -1'); return -1; } } @@ -337,6 +339,7 @@ class Paiement $sql .= ' FROM '.MAIN_DB_PREFIX.'paiement as c'; $sql .= ' WHERE c.rowid = '.$id; + dolibarr_syslog('Paiement::info sql='.$sql); $result = $this->db->query($sql); if ($result)