Update company.lib.php
This commit is contained in:
parent
63f3ac2f2b
commit
b9bbba813a
@ -145,22 +145,25 @@ function societe_prepare_head(Societe $object)
|
|||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tab to accountancy
|
if (! empty($conf->global->ACCOUNTING_ENABLE_LETTERING))
|
||||||
if (! empty($conf->accounting->enabled) && $object->client>0)
|
|
||||||
{
|
{
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/accountancy/bookkeeping/thirdparty_lettrage.php?socid='.$object->id;
|
// Tab to accountancy
|
||||||
$head[$h][1] = $langs->trans("TabAccountingCustomer");
|
if (! empty($conf->accounting->enabled) && $object->client>0)
|
||||||
$head[$h][2] = 'accounting';
|
{
|
||||||
$h++;
|
$head[$h][0] = DOL_URL_ROOT.'/accountancy/bookkeeping/thirdparty_lettrage.php?socid='.$object->id;
|
||||||
}
|
$head[$h][1] = $langs->trans("TabAccountingCustomer");
|
||||||
|
$head[$h][2] = 'accounting';
|
||||||
|
$h++;
|
||||||
|
}
|
||||||
|
|
||||||
// Tab to accountancy
|
// Tab to accountancy
|
||||||
if (! empty($conf->accounting->enabled) && $object->fournisseur>0)
|
if (! empty($conf->accounting->enabled) && $object->fournisseur>0)
|
||||||
{
|
{
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/accountancy/bookkeeping/thirdparty_lettrage_supplier.php?socid='.$object->id;
|
$head[$h][0] = DOL_URL_ROOT.'/accountancy/bookkeeping/thirdparty_lettrage_supplier.php?socid='.$object->id;
|
||||||
$head[$h][1] = $langs->trans("TabAccountingSupplier");
|
$head[$h][1] = $langs->trans("TabAccountingSupplier");
|
||||||
$head[$h][2] = 'accounting_supplier';
|
$head[$h][2] = 'accounting_supplier';
|
||||||
$h++;
|
$h++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Related items
|
// Related items
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user