From 966a46a8f201b3c9618fedff664aed762754eed8 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 18 Jan 2005 16:23:29 +0000 Subject: [PATCH] =?UTF-8?q?On=20accepte=20les=20montants=20n=E9gatifs=20po?= =?UTF-8?q?ur=20les=20rejets=20de=20pr=E9l=E8vement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/paiement.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/paiement.class.php b/htdocs/paiement.class.php index 05b82a7d4cc..771092e6c7c 100644 --- a/htdocs/paiement.class.php +++ b/htdocs/paiement.class.php @@ -146,7 +146,7 @@ class Paiement $total = ereg_replace(",",".",$total); - if ($total > 0) + if ($total <> 0) /* On accepte les montants négatifs pour les rejets de prélèvement */ { $sql = "INSERT INTO ".MAIN_DB_PREFIX."paiement (datec, datep, amount, fk_paiement, num_paiement, note, fk_user_creat)"; $sql .= " VALUES (now(), $this->datepaye, '$total', $this->paiementid, '$this->num_paiement', '$this->note', $user->id)";