From 5c47a608512ae5ff39190893c9a91066bbcf7857 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 17 Nov 2011 20:56:47 +0100 Subject: [PATCH] Fix: Can add discount if no product line provided yet --- htdocs/core/class/html.form.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index f7ddd7cfc24..1ea874b70a9 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -846,7 +846,7 @@ class Form if ($selected > 0 && $selected == $obj->rowid) $selectstring=' selected="selected"'; $disabled=''; - if ($maxvalue && $obj->amount_ttc > $maxvalue) + if ($maxvalue > 0 && $obj->amount_ttc > $maxvalue) { $qualifiedlines--; $disabled=' disabled="disabled"';