• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/grid/row/productrowassembler.php
  • Класс: BitrixCatalogGridRowProductRowAssembler
  • Вызов: ProductRowAssembler::getClearedProductFields
private function getClearedProductFields(): array
{
	$result = array_fill_keys(ProductTable::getProductTypes(false), []);

	$baseClearSkuFields = [
		'QUANTITY',
		'QUANTITY_RESERVED',
		'QUANTITY_TRACE',
		'CAN_BUY_ZERO',
		'PURCHASING_PRICE',
		'PURCHASING_CURRENCY',
		'MEASURE',
		'VAT_INCLUDED',
		'VAT_ID',
		'WEIGHT',
		'WIDTH',
		'LENGTH',
		'HEIGHT',
	];

	if (!$this->isUseSkuSelector && !$this->isUseCatalogTab)
	{
		$result[ProductTable::TYPE_SKU] = $baseClearSkuFields;
	}

	if (!$this->isUseCatalogTab)
	{
		$result[ProductTable::TYPE_EMPTY_SKU] = $baseClearSkuFields;
	}

	$result[ProductTable::TYPE_SET] = [
		'QUANTITY_RESERVED',
	];

	$result[ProductTable::TYPE_SERVICE] = [
		'QUANTITY',
		'QUANTITY_RESERVED',
		'QUANTITY_TRACE',
		'CAN_BUY_ZERO',
		'WEIGHT',
		'WIDTH',
		'LENGTH',
		'HEIGHT',
	];

	return $result;
}