From 9e2f3ad51f6667555da116ea24607a67909ef6d0 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 7 Dec 2007 22:46:35 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20on=20converti=20les=20paiements=20fourni?= =?UTF-8?q?sseur=20en=20n=E9gatif=20pour=20les=20soustraire=20correctement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/bank/treso.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/bank/treso.php b/htdocs/compta/bank/treso.php index d49cfc026a4..019ecaed13b 100644 --- a/htdocs/compta/bank/treso.php +++ b/htdocs/compta/bank/treso.php @@ -184,7 +184,7 @@ if ($_REQUEST["account"] || $_REQUEST["ref"]) $facture = $facturefournstatic->getNomUrl(1,''); // On recherche les paiements deja effectue pour les deduires - $sqlp = "SELECT sum(amount) as paiement"; + $sqlp = "SELECT sum(-1*amount) as paiement"; $sqlp.= " FROM ".MAIN_DB_PREFIX.'paiementfourn_facturefourn'; $sqlp.= " WHERE fk_facturefourn = ".$obj->facid; $resql = $db->query($sqlp);