• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/exchange/entity/shipmentimport.php
  • Класс: BitrixSaleExchangeEntityShipmentImport
  • Вызов: ShipmentImport::getBusinessValueOrderProvider
protected function getBusinessValueOrderProvider(BitrixSaleIBusinessValueProvider $entity)
{
	if(!($entity instanceof Shipment))
		throw new MainArgumentException("entity must be instanceof Shipment");

	/** @var SaleShipmentCollection $collection */
	$collection = $entity->getCollection();

	return $collection->getOrder();
}