diff --git a/htdocs/soc.php b/htdocs/soc.php index 69b19169d7a..aeb6328989c 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -137,7 +137,14 @@ if ((! $_POST["getcustomercode"] && ! $_POST["getsuppliercode"]) } else { - Header("Location: soc.php?socid=".$soc->id); + if ( $soc->fournisseur == 1 ) + { + Header("Location: fourn/fiche.php?socid=".$soc->id); + } + else + { + Header("Location: soc.php?socid=".$soc->id); + } } exit; }