• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/compatible/ordercompatibility.php
  • Класс: BitrixSaleCompatibleOrderCompatibility
  • Вызов: OrderCompatibility::getShipmentByDeliveryId
static function getShipmentByDeliveryId(SaleShipmentCollection $shipmentCollection, $deliveryId)
{
	/** @var SaleShipment $shipment */
	foreach($shipmentCollection as $shipment)
	{
		if ($shipment->isSystem())
			continue;

		if ($shipment->getDeliveryId() == $deliveryId)
		{
			return $shipment;
		}
	}

	return false;
}