FIX : Product accountancey sell intra code must be visible if main feature level 1

This commit is contained in:
gauthier 2019-04-11 15:19:40 +02:00
parent ffca289bff
commit 524b186959

View File

@ -3580,7 +3580,7 @@ class Product extends CommonObject
{
//
}
if (! empty($conf->accounting->enabled) && $this->status)
if (! empty($conf->accounting->enabled) && $this->status && !empty($conf->global->MAIN_FEATURES_LEVEL))
{
include_once DOL_DOCUMENT_ROOT.'/core/lib/accounting.lib.php';
$label.= '<br><b>' . $langs->trans('ProductAccountancySellCode') . ':</b> '. length_accountg($this->accountancy_code_sell);