• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/shipmentitemstore.php
  • Класс: BitrixSaleShipmentItemStore
  • Вызов: ShipmentItemStore::loadForShipmentItem
static function loadForShipmentItem($id)
{
	if ((int)$id <= 0)
	{
		throw new MainArgumentNullException("id");
	}

	$items = [];

	$itemDataList = static::getList([
		'filter' => ['=ORDER_DELIVERY_BASKET_ID' => $id],
		'order' => ['DATE_CREATE' => 'ASC', 'ID' => 'ASC']
	]);

	while ($itemData = $itemDataList->fetch())
	{
		$items[] = static::createShipmentItemStoreObject($itemData);
	}

	return $items;
}