Renvoi vers la fiche client lors de la creation d'un client
This commit is contained in:
parent
40c33d355a
commit
fefa18507d
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2003 Brian Fraval <brian@fraval.org>
|
* Copyright (C) 2003 Brian Fraval <brian@fraval.org>
|
||||||
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005 Eric Seigne <eric.seigne@ryxeo.com>
|
* Copyright (C) 2005 Eric Seigne <eric.seigne@ryxeo.com>
|
||||||
@ -24,10 +24,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/soc.php
|
\file htdocs/soc.php
|
||||||
* \ingroup societe
|
\ingroup societe
|
||||||
* \brief Onglet societe d'une societe
|
\brief Onglet societe d'une societe
|
||||||
* \version $Revision$
|
\version $Revision$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("pre.inc.php");
|
require("pre.inc.php");
|
||||||
@ -130,8 +130,15 @@ if ((! $_POST["getcustomercode"] && ! $_POST["getsuppliercode"])
|
|||||||
$result = $soc->create($user);
|
$result = $soc->create($user);
|
||||||
|
|
||||||
if ($result >= 0)
|
if ($result >= 0)
|
||||||
|
{
|
||||||
|
if ( $soc->client == 1 )
|
||||||
|
{
|
||||||
|
Header("Location: comm/fiche.php?socid=".$soc->id);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
Header("Location: soc.php?socid=".$soc->id);
|
Header("Location: soc.php?socid=".$soc->id);
|
||||||
|
}
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user