diff --git a/htdocs/compta/facture/apercu.php b/htdocs/compta/facture/apercu.php
index ad47f439dbd..a3aa71224a3 100644
--- a/htdocs/compta/facture/apercu.php
+++ b/htdocs/compta/facture/apercu.php
@@ -238,24 +238,12 @@ if ($id > 0 || ! empty($ref))
print "";
// Date payment term
- print '
';
- print '| ';
- print $langs->trans('DateMaxPayment');
- print ' | ';
- if ($object->type != Facture::TYPE_CREDIT_NOTE && $action != 'editpaymentterm' && $object->brouillon && $user->rights->facture->creer) print 'id.'">'.img_edit($langs->trans('SetDate'),1).' | ';
- print ' ';
- print ' | ';
+ print ' |
| '.$langs->trans('DateMaxPayment').' | ';
+ print '';
if ($object->type != Facture::TYPE_CREDIT_NOTE)
{
- if ($action == 'editpaymentterm')
- {
- $form->form_date($_SERVER['PHP_SELF'].'?facid='.$object->id,$object->date_lim_reglement,'paymentterm');
- }
- else
- {
- print dol_print_date($object->date_lim_reglement,'daytext');
- if ($object->date_lim_reglement < ($now - $conf->facture->client->warning_delay) && ! $object->paye && $object->statut == 1 && ! $object->am) print img_warning($langs->trans('Late'));
- }
+ print dol_print_date($object->date_lim_reglement,'daytext');
+ if ($object->date_lim_reglement < ($now - $conf->facture->client->warning_delay) && ! $object->paye && $object->statut == 1 && ! $object->am) print img_warning($langs->trans('Late'));
}
else
{
@@ -270,21 +258,8 @@ if ($id > 0 || ! empty($ref))
print ' |
';
// Mode de reglement
- print '| ';
- print '';
- print ' | ';
- if ($action == 'editmode')
- {
- $form->form_modes_reglement($_SERVER['PHP_SELF'].'?facid='.$object->id,$object->mode_reglement_id,'mode_reglement_id');
- }
- else
- {
- $form->form_modes_reglement($_SERVER['PHP_SELF'].'?facid='.$object->id,$object->mode_reglement_id,'none');
- }
+ print ' |
| '.$langs->trans('PaymentMode').' | ';
+ $form->form_modes_reglement($_SERVER['PHP_SELF'].'?facid='.$object->id,$object->mode_reglement_id,'none');
print ' | ';
$nbrows=5;
@@ -313,8 +288,8 @@ if ($id > 0 || ! empty($ref))
if (file_exists($file))
{
$encfile = urlencode($file);
- print_titre($langs->trans("Documents"));
- print '';
+ print '';
+ print '| '.$langs->trans("Documents").' |
';
print "| ".$langs->trans("Bill")." PDF | ";