From 2d3275820fbfce158469326e554f2ac8fa866831 Mon Sep 17 00:00:00 2001 From: liedekef Date: Fri, 5 Jan 2007 15:51:43 +0000 Subject: [PATCH] fix bug/feature #18620 :-) Please test, the bugreport is still open --- 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 4fb008198fb..14b2a5ffbe5 100644 --- a/htdocs/compta/paiement.php +++ b/htdocs/compta/paiement.php @@ -2,6 +2,7 @@ /* Copyright (C) 2001-2006 Rodolphe Quiedeville * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2005 Marc Barilley / Ocebo + * Copyright (C) 2007 Franky Van Liedekerke * * 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 @@ -101,7 +102,7 @@ if ($_POST['action'] == 'add_paiement' || $_POST['action'] == 'confirm_paiement' } } - if ($totalpaiement <= 0) + if ($totalpaiement == 0) { $fiche_erreur_message = '
'.$langs->transnoentities('ErrorFieldRequired',$langs->trans('Amount')).'
'; $error++;