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

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

	return $collection->getOrder();
}