[Error] 
Call to a member function getCode() on bool (0)
/srv/www/src/Stock/Helper/SalesHelper.php:23
#0: SimpleWine\Stock\Helper\SalesHelper->getActiveTabs(object, string, NULL)
	/srv/www/common/local/components/simplewine/sales.detail/class.php:79
#1: SimpleWineSalesDetailComponent->executeComponent()
	/srv/www/common/bitrix/modules/main/classes/general/component.php:638
#2: CBitrixComponent->includeComponent(string, array, object)
	/srv/www/common/bitrix/modules/main/classes/general/main.php:1037
#3: CAllMain->IncludeComponent(string, string, array, object, array)
	/srv/www/common/local/components/simplewine/sales/templates/.default/sale.php:20
#4: include(string)
	/srv/www/common/bitrix/modules/main/classes/general/component_template.php:720
#5: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/srv/www/common/bitrix/modules/main/classes/general/component_template.php:815
#6: CBitrixComponentTemplate->IncludeTemplate(array)
	/srv/www/common/bitrix/modules/main/classes/general/component.php:735
#7: CBitrixComponent->showComponentTemplate()
	/srv/www/common/bitrix/modules/main/classes/general/component.php:683
#8: CBitrixComponent->includeComponentTemplate(string)
	/srv/www/common/local/components/simplewine/sales/class.php:48
#9: SalesComponent->executeComponent()
	/srv/www/common/bitrix/modules/main/classes/general/component.php:638
#10: CBitrixComponent->includeComponent(string, array, NULL)
	/srv/www/common/bitrix/modules/main/classes/general/main.php:1037
#11: CAllMain->IncludeComponent(string, string, array)
	/srv/www/web/stock/index.php:10
#12: include_once(string)
	/srv/www/common/bitrix/modules/main/include/urlrewrite.php:159
#13: include_once(string)
	/srv/www/common/bitrix/urlrewrite.php:2