Update company.lib.php

This commit is contained in:
Laurent Destailleur 2017-10-22 15:28:03 +02:00 committed by GitHub
parent 63f3ac2f2b
commit b9bbba813a

View File

@ -145,6 +145,8 @@ function societe_prepare_head(Societe $object)
$h++; $h++;
} }
if (! empty($conf->global->ACCOUNTING_ENABLE_LETTERING))
{
// Tab to accountancy // Tab to accountancy
if (! empty($conf->accounting->enabled) && $object->client>0) if (! empty($conf->accounting->enabled) && $object->client>0)
{ {
@ -162,6 +164,7 @@ function societe_prepare_head(Societe $object)
$head[$h][2] = 'accounting_supplier'; $head[$h][2] = 'accounting_supplier';
$h++; $h++;
} }
}
// Related items // Related items
if (! empty($conf->commande->enabled) || ! empty($conf->propal->enabled) || ! empty($conf->facture->enabled) || ! empty($conf->fichinter->enabled) || ! empty($conf->fournisseur->enabled)) if (! empty($conf->commande->enabled) || ! empty($conf->propal->enabled) || ! empty($conf->facture->enabled) || ! empty($conf->fichinter->enabled) || ! empty($conf->fournisseur->enabled))