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

	$items = [];

	$itemDataList = static::getList([
		'filter' => [
			'=ORDER_DELIVERY_ID' => $id,
			'!BASKET.ID' => null
		],
		'order' => ['DATE_INSERT' => 'ASC', 'ID' => 'ASC']
	]);

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

	return $items;
}