diff --git a/htdocs/compta/facture/note.php b/htdocs/compta/facture/note.php index 12c6e25ca5b..7a549f7519d 100644 --- a/htdocs/compta/facture/note.php +++ b/htdocs/compta/facture/note.php @@ -46,24 +46,31 @@ if ($user->societe_id > 0) $socidp = $user->societe_id; } + + /******************************************************************************/ /* Actions */ /******************************************************************************/ if ($_POST["action"] == 'update' && $user->rights->facture->creer) { + + $facture = new Facture($db); $facture->fetch($_GET["facid"]); $facture->update_note($_POST["note"]); - } -llxHeader(); -$html = new Form($db); /******************************************************************************/ /* Fin des Actions */ /******************************************************************************/ + +llxHeader(); + +$html = new Form($db); + + if ($_GET["facid"]) { $facture = new Facture($db); @@ -114,7 +121,7 @@ if ($_GET["facid"]) print ''.$soc->nom.''; print '