Fix: Must use same order than in menus

This commit is contained in:
Laurent Destailleur 2011-01-19 11:26:43 +00:00
parent 944277bc5e
commit 8a58ab981e

View File

@ -44,13 +44,6 @@ function societe_prepare_head($object)
$head[$h][2] = 'card';
$h++;
if ($object->client==1 || $object->client==3 || $object->object->client==1 || $object->object->client==3)
{
$head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$object->id;
$head[$h][1] = $langs->trans("Customer");
$head[$h][2] = 'customer';
$h++;
}
if ($object->client==2 || $object->client==3 || $object->object->client==2 || $object->object->client==3)
{
$head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?socid='.$object->id;
@ -58,6 +51,13 @@ function societe_prepare_head($object)
$head[$h][2] = 'prospect';
$h++;
}
if ($object->client==1 || $object->client==3 || $object->object->client==1 || $object->object->client==3)
{
$head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$object->id;
$head[$h][1] = $langs->trans("Customer");
$head[$h][2] = 'customer';
$h++;
}
if ($object->fournisseur || $object->object->fournisseur)
{
$head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$object->id;