From 1357aca32779d00492310808492a4fdc872a6f06 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 15 Jan 2007 11:53:25 +0000 Subject: [PATCH] Renvoi vers la fiche fournisseur lors de la creation --- htdocs/soc.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; }