• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/shipmentitem.php
  • Класс: BitrixSaleShipmentItem
  • Вызов: ShipmentItem::getErrorEntity
public function getErrorEntity($value)
{
	static $className = null;
	$errorsList = static::getAutoFixErrorsList();
	if (is_array($errorsList) && in_array($value, $errorsList))
	{
		if ($className === null)
			$className = static::getClassName();
	}
	else
	{
		/** @var ShipmentItemStoreCollection $shipmentItemStoreCollection */
		if ($shipmentItemStoreCollection = $this->getShipmentItemStoreCollection())
		{
			$className = $shipmentItemStoreCollection->getErrorEntity($value);
		}
	}

	return $className;
}