From d46c49c6c54c4c8f178bc1876d724efde3a93084 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 2 May 2004 12:51:12 +0000 Subject: [PATCH] =?UTF-8?q?Les=20factures=20annul=E9es=20ne=20sont=20pas?= =?UTF-8?q?=20=E0=20proposer=20dans=20l'=E9cran=20de=20paiement=20des=20fa?= =?UTF-8?q?ctures=20clients.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/paiement.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index 25bf0244995..d6e985773ee 100644 --- a/htdocs/compta/paiement.php +++ b/htdocs/compta/paiement.php @@ -1,5 +1,6 @@ + * Copyright (C) 2004 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -211,7 +212,7 @@ if ($_GET["action"] == 'create') $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."paiement_facture as pf ON pf.fk_facture = f.rowid"; $sql .= " WHERE f.fk_soc = ".$facture->socidp; $sql .= " AND f.paye = 0"; - $sql .= " AND f.fk_statut > 0";// AND f.rowid <>".$_GET["facid"]; + $sql .= " AND f.fk_statut = 1"; // Statut=0 => non validée, Statut=2 => annulée $sql .= " GROUP BY f.facnumber"; if ($db->query($sql))