• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/cml2.php
  • Класс: CIBlockCMLImport
  • Вызов: CIBlockCMLImport::countTotalQuantity
protected function countTotalQuantity(array $stores)
{
	$totalQuantity = 0;
	foreach ($stores as $xmlId => $quantity)
	{
		if (isset($this->activeStores[$xmlId]))
		{
			$totalQuantity += $quantity;
		}
	}
	return $totalQuantity;
}