diff --git a/htdocs/fourn/paiement/fiche.php b/htdocs/fourn/paiement/fiche.php
index c5fc368dccb..bbdcd1cc0ef 100644
--- a/htdocs/fourn/paiement/fiche.php
+++ b/htdocs/fourn/paiement/fiche.php
@@ -176,13 +176,13 @@ if ($conf->banque->enabled)
}
//switch through edition options for date (only available when statut is -not 1- (=validated))
- if(empty($_GET['action']) or $_GET['action']!='edit_date')
+ if (empty($_GET['action']) || $_GET['action']!='edit_date')
{
print '
| ';
print '';
print ' | ';
print ''.dolibarr_print_date($paiement->date,'day').' |
';
@@ -207,15 +207,13 @@ if ($conf->banque->enabled)
print '| '.$langs->trans('Type').' | '.$paiement->type_libelle.' |
';
//switch through edition options for number (only available when statut is -not 1- (=validated))
- if ($paiement->statut == 0)
- {
- if(empty($_GET['action']) or $_GET['action'] != 'edit_num')
+ if (empty($_GET['action']) || $_GET['action'] != 'edit_num')
{
print '| ';
print '';
print ' | ';
print ''.$paiement->numero.' |
';
@@ -235,18 +233,14 @@ if ($conf->banque->enabled)
print '';
print '';
}
- }
- else
- {
- print '| '.$langs->trans('Numero').' | ';
- print ''.$paiement->numero.' |
';
- }
print '| '.$langs->trans('Amount').' | '.price($paiement->montant).' '.$langs->trans('Currency'.$conf->monnaie).' |
';
print '| '.$langs->trans('Status').' | '.$paiement->getLibStatut(4).' |
';
print '| '.$langs->trans('Note').' | '.nl2br($paiement->note).' |
';
print '';
-if ($mesg) print '
'.$mesg.'
';
+if ($mesg) print '
'.$mesg;
+
+print '
';
/**
* Liste des factures