• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/order/productmanager.php
  • Класс: Bitrix\Crm\Order\ProductManager
  • Вызов: ProductManager::getUnShippableProductList
protected function getUnShippableProductList(): array
{
	$products = [];

	if ($this->order)
	{
		$shipment = $this->order->getShipmentCollection()->getSystemShipment();

		/** @var ShipmentItem $shipmentItem */
		foreach ($shipment->getShipmentItemCollection()->getShippableItems() as $shipmentItem)
		{
			/** @var BasketItem $basketItem */
			$basketItem = $shipmentItem->getBasketItem();

			$item = $this->extractDataFromBasketItem($basketItem);
			$item['QUANTITY'] = $shipmentItem->getQuantity();

			$products[] = $item;
		}
	}

	return $products;
}