From 923a015aac52a434c008aca4c7f768f8471d5f33 Mon Sep 17 00:00:00 2001 From: lmarcouiller Date: Mon, 28 Jun 2021 11:38:34 +0200 Subject: [PATCH] Fix #18014 : update of compta/facture/card.php --- htdocs/compta/facture/card.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php index 585cabc1be4..b44b7d22fd8 100644 --- a/htdocs/compta/facture/card.php +++ b/htdocs/compta/facture/card.php @@ -2375,12 +2375,12 @@ if (empty($reshook)) { setEventMessages($mesg, null, 'warnings'); $error++; $result = -1; + } elseif (GETPOST('progress') < $percent) { + $mesg = '
'.$langs->trans("CantBeLessThanMinPercent").'
'; + setEventMessages($mesg, null, 'warnings'); + $error++; + $result = -1; } - } elseif (GETPOST('progress') < $percent) { - $mesg = '
'.$langs->trans("CantBeLessThanMinPercent").'
'; - setEventMessages($mesg, null, 'warnings'); - $error++; - $result = -1; } // Check minimum price