diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php index 58dcf976252..82b4db1eaab 100644 --- a/htdocs/fourn/facture/paiement.php +++ b/htdocs/fourn/facture/paiement.php @@ -113,7 +113,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,8 +173,6 @@ llxHeader(); $html=new Form($db); -if ($mesg) print $mesg; - if ($action == 'create' || $action == 'add_paiement') { $facture = new FactureFournisseur($db); @@ -202,6 +200,9 @@ if ($action == 'create' || $action == 'add_paiement') print_fiche_titre($langs->trans('DoPayment')); + if ($mesg) print $mesg; + if ($errmsg) print $errmsg; + print '
'; print ''; print ''; @@ -402,6 +403,9 @@ if (! $_GET['action'] && ! $_POST['action']) print_barre_liste($langs->trans('SupplierPayments'), $page, 'paiement.php',$paramlist,$sortfield,$sortorder,'',$num); + if ($mesg) print $mesg; + if ($errmsg) print $errmsg; + print ''; print ''; print '';