diff --git a/htdocs/comm/remise.php b/htdocs/comm/remise.php index e51a1b6833f..d0bddb30d58 100644 --- a/htdocs/comm/remise.php +++ b/htdocs/comm/remise.php @@ -19,7 +19,7 @@ /** * \file htdocs/comm/remise.php * \ingroup societe - * \brief Page to edit relative discount of a customer + * \brief Onglet remise de la societe */ require("../main.inc.php"); @@ -30,7 +30,7 @@ $langs->load("companies"); $langs->load("orders"); $langs->load("bills"); -$_socid = GETPOST("id"); +$_socid = $_GET["id"]; // Security check if ($user->societe_id > 0) { @@ -38,17 +38,7 @@ if ($user->societe_id > 0) } -/* - * Actions - */ - -if (GETPOST('cancel') && GETPOST('backtopage')) -{ - Header("Location: ".GETPOST("backtopage")); - exit; -} - -if (GETPOST("action") == 'setremise') +if ($_POST["action"] == 'setremise') { $soc = New Societe($db); $soc->fetch($_GET["id"]); @@ -120,7 +110,6 @@ if ($_socid > 0) print '
'; print ''; print ''; - print ''; print ''; @@ -134,19 +123,11 @@ if ($_socid > 0) print "
"; - print '
'; - print ''; - if (GETPOST("backtopage")) - { - print '    '; - print ''; - } - print '
'; + print '
'; print "
"; - dol_fiche_end(); - + print "\n"; print '
';