diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php
index fb0e3c6ffc9..45b4e963f2e 100644
--- a/htdocs/fourn/facture/paiement.php
+++ b/htdocs/fourn/facture/paiement.php
@@ -112,7 +112,7 @@ if ($action == 'add_paiement')
if (empty($datepaye))
{
- $fiche_erreur_message = '
'.$langs->trans('ErrorFieldRequired',$langs->transnoentities('Date')).'
';
+ $mesg = ''.$langs->trans('ErrorFieldRequired',$langs->transnoentities('Date')).'
';
$error++;
}
@@ -173,6 +173,7 @@ llxHeader();
$html=new Form($db);
if ($mesg) print $mesg;
+if ($errmsg) print $errmsg;
if ($action == 'create' || $action == 'add_paiement')
{