diff --git a/htdocs/compta/facture/note.php b/htdocs/compta/facture/note.php index 395a061d449..7e24dfc8297 100644 --- a/htdocs/compta/facture/note.php +++ b/htdocs/compta/facture/note.php @@ -81,6 +81,14 @@ if ($_GET["facid"]) $head[$h][0] = DOL_URL_ROOT.'/compta/facture/apercu.php?facid='.$facture->id; $head[$h][1] = $langs->trans("Apercu"); $h++; + + if ($facture->mode_reglement == 3) + { + $head[$h][0] = DOL_URL_ROOT.'/compta/facture/prelevement.php?facid='.$facture->id; + $head[$h][1] = $langs->trans("Prélèvement"); + $h++; + } + $head[$h][0] = DOL_URL_ROOT.'/compta/facture/note.php?facid='.$facture->id; $head[$h][1] = $langs->trans("Note"); $hselected = $h; @@ -106,50 +114,52 @@ if ($_GET["facid"]) print ''.$soc->nom.''; print ''.$langs->trans("Status").''.$facture->statut_libelle.''; - print 'Date'.strftime("%A %d %B %Y",$facture->date); - if ($facture->fin_validite) - { - print " (".strftime("%d %B %Y",$facture->fin_validite).")"; - } - print ''; - - print ''.$langs->trans("Author").''; - $author = new User($db, $facture->user_author); - $author->fetch(''); - print $author->fullname.''; - - print 'Note :
'. nl2br($facture->note).""; - - if ($_GET["action"] == 'edit') - { - print '
'; - print ''; - print '"; - print ''; - print '
'; - } - - print ""; + print 'Date'.strftime("%A %d %B %Y",$facture->date); + if ($facture->fin_validite) + { + print " (".strftime("%d %B %Y",$facture->fin_validite).")"; + } + print ''; + + print ''.$langs->trans("Author").''; + $author = new User($db, $facture->user_author); + $author->fetch(''); + print $author->fullname.''; + + print 'Note :'; + print ''.nl2br($facture->note).""; + + if ($_GET["action"] == 'edit') + { + print '
'; + print ''; + print '"; + print ''; + print '
'; + } + + print ""; + print "
"; + - - /* - * Actions - */ - print ''; - print '
'; - - if ($user->rights->facture->creer && $_GET["action"] <> 'edit') - { - print "id&action=edit\">".$langs->trans('Edit').""; - } - - print "
"; - - + /* + * Actions + */ + print ''; + print '
'; + + if ($user->rights->facture->creer && $_GET["action"] <> 'edit') + { + print "id&action=edit\">".$langs->trans('Edit').""; + } + + print "
"; + + } - + } $db->close(); llxFooter("Dernière modification $Date$ révision $Revision$");