• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/helpers/admin/blocks/orderinfo.php
  • Класс: BitrixSaleHelpersAdminBlocksOrderInfo
  • Вызов: OrderInfo::getShipmentsInfo
static function getShipmentsInfo(Order $order)
{
	$result = array();
	$shipments = $order->getShipmentCollection();

	/** @var BitrixSaleShipment $shipment */
	foreach($shipments as $shipment)
	{
		if($shipment->isSystem())
			continue;

		/** @var BitrixSaleDeliveryServicesBase  $deliveryService */
		$deliveryService = $shipment->getDelivery();

		if(!$deliveryService)
			continue;

		$result[] = array(
			"ID" => $shipment->getId(),
			"NAME" => $deliveryService->getName(),
			"LOGOTIP_PATH" => $deliveryService->getLogotipPath(),
			"IS_SHIPPED" => $shipment->isShipped(),
			"DEDUCTED" => $shipment->getField('DEDUCTED')
		);
	}

	return $result;
}