From 0163862a42299454a2015b82bb3ac680d2af093f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 15 Mar 2012 22:59:55 +0100 Subject: [PATCH] Fix: Can add a credit not even if credit note is higher than amount. --- htdocs/compta/facture.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 4711ecf7c60..17a11946821 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -2286,7 +2286,8 @@ else { // Remise dispo de type avoir if (! $absolute_discount) print '
'; - $html->form_remise_dispo($_SERVER["PHP_SELF"].'?facid='.$object->id, 0, 'remise_id_for_payment', $soc->id, $absolute_creditnote, $filtercreditnote, $resteapayer); + //$html->form_remise_dispo($_SERVER["PHP_SELF"].'?facid='.$object->id, 0, 'remise_id_for_payment', $soc->id, $absolute_creditnote, $filtercreditnote, $resteapayer); + $html->form_remise_dispo($_SERVER["PHP_SELF"].'?facid='.$object->id, 0, 'remise_id_for_payment', $soc->id, $absolute_creditnote, $filtercreditnote, 0); // We must allow credit not even if amount is higher } } if (! $absolute_discount && ! $absolute_creditnote)