Fix: Hide if supplier module is disabled
This commit is contained in:
parent
fe75e417ef
commit
7bcffa5f2c
@ -1133,22 +1133,22 @@ else
|
|||||||
print '</td></tr></table>';
|
print '</td></tr></table>';
|
||||||
|
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
|
||||||
|
|
||||||
// Category
|
// Category
|
||||||
if ($soc->fournisseur)
|
if ($conf->categorie->enabled && $soc->fournisseur)
|
||||||
{
|
{
|
||||||
$load = $soc->LoadSupplierCateg();
|
$load = $soc->LoadSupplierCateg();
|
||||||
if ( $load == 0)
|
if ( $load == 0)
|
||||||
{
|
{
|
||||||
if (sizeof($soc->SupplierCategories) > 0)
|
if (sizeof($soc->SupplierCategories) > 0)
|
||||||
{
|
{
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td>'.$langs->trans('SupplierCategory').'</td><td colspan="3">';
|
print '<td>'.$langs->trans('SupplierCategory').'</td><td colspan="3">';
|
||||||
print $form->selectarray("fournisseur_categorie",$soc->SupplierCategories,'',1);
|
print $form->selectarray("fournisseur_categorie",$soc->SupplierCategories,'',1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->global->MAIN_MODULE_BARCODE)
|
if ($conf->global->MAIN_MODULE_BARCODE)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user