diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index 0cb9246d144..c85799ab7fd 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -20,7 +20,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ - * $Source$ */ /** @@ -96,36 +95,6 @@ if ($_POST["action"] == 'setassujtva' && $user->rights->societe->creer) if (! $result) dolibarr_print_error($result); } -if ($action == 'stcomm') -{ - if ($stcommid <> 'null' && $stcommid <> $oldstcomm) - { - $sql = "INSERT INTO socstatutlog (datel, fk_soc, fk_statut, author) "; - $sql .= " VALUES ('$dateaction',$socid,$stcommid,'" . $user->login . "')"; - $result = @$db->query($sql); - - if ($result) - { - $sql = "UPDATE ".MAIN_DB_PREFIX."societe SET fk_stcomm=$stcommid WHERE rowid=".$socid; - $result = $db->query($sql); - } - else - { - $errmesg = "ERREUR DE DATE !"; - } - } - - if ($actioncommid) - { - $sql = "INSERT INTO ".MAIN_DB_PREFIX."actioncomm (datea, fk_action, fk_soc, fk_user_author) VALUES ('$dateaction',$actioncommid,$socid,'" . $user->id . "')"; - $result = @$db->query($sql); - - if (!$result) - { - $errmesg = "ERREUR DE DATE !"; - } - } -} /* * Recherche diff --git a/htdocs/compta/clients.php b/htdocs/compta/clients.php index dc87c29ec06..b3aa7900b3e 100644 --- a/htdocs/compta/clients.php +++ b/htdocs/compta/clients.php @@ -72,36 +72,6 @@ if ($action == 'note') $result = $db->query($sql); } -if ($action == 'stcomm') -{ - if ($stcommid <> 'null' && $stcommid <> $oldstcomm) - { - $sql = "INSERT INTO ".MAIN_DB_PREFIX."socstatutlog (datel, fk_soc, fk_statut, author) "; - $sql .= " VALUES ('$dateaction',$socid,$stcommid,'" . $user->login . "')"; - $result = @$db->query($sql); - - if ($result) - { - $sql = "UPDATE ".MAIN_DB_PREFIX."societe SET fk_stcomm=".$stcommid." WHERE rowid=".$socid; - $result = $db->query($sql); - } - else - { - $errmesg = "ERREUR DE DATE !"; - } - } - - if ($actioncommid) - { - $sql = "INSERT INTO ".MAIN_DB_PREFIX."actioncomm (datea, fk_action, fk_soc, fk_user_author) VALUES ('$dateaction',$actioncommid,$socid,'" . $user->id . "')"; - $result = @$db->query($sql); - - if (!$result) - { - $errmesg = "ERREUR DE DATE !"; - } - } -} /* * Recherche