• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/internals/providercreator.php
  • Класс: BitrixSaleInternalsProviderCreator
  • Вызов: ProviderCreator::setItemsResultAfterTryShip
public function setItemsResultAfterTryShip(PoolQuantity $pool, array $productTryShipList)
{
	$result = new SaleResult();

	/** @var ProviderBuilderBase $builder */
	foreach ($this->pool as $builder)
	{
		$providerName = $builder->getProviderName();

		if (!$productTryShipList[$providerName])
		{
			continue;
		}

		$r = $builder->setItemsResultAfterTryShip($pool, $productTryShipList[$providerName]);
		if (!$r->isSuccess())
		{
			$result->addErrors($r->getErrors());
		}
	}

	return $result;
}