• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/exchange/integration/controller/stepper.php
  • Класс: BitrixSaleExchangeIntegrationControllerStepper
  • Вызов: Stepper::getInActiveOrders
protected function getInActiveOrders($orderIds)
{
	$registry = BitrixSaleRegistry::getInstance(BitrixSaleRegistry::REGISTRY_TYPE_ORDER);

	/** @var BitrixSaleOrder $orderClass */
	$orderClass = $registry->getOrderClassName();

	$r=[];
	if(count($orderIds)>0)
	{
		$list = $orderClass::getList([
			'select'=>['ID'],
			'filter'=>['ID'=>$orderIds, 'IS_SYNC_B24'=>'Y']
		])->fetchAll();

		if(count($list)>0)
		{
			foreach ($list as $l)
			{
				$r[] = $l['ID'];
			}
		}
	}

	return $r;
}