CAllCrmProductRow::GetRowQuantity

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CAllCrmProductRow
  4. GetRowQuantity
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_product_row.php
  • Класс: \CAllCrmProductRow
  • Вызов: CAllCrmProductRow::GetRowQuantity
static function GetRowQuantity($ownerType, $ownerID)
{
	$ownerType = strval($ownerType);
	$ownerID = intval($ownerID);

	return $ownerType !== '' && $ownerID > 0
		? self::GetList(array(), array('OWNER_TYPE' => $ownerType, 'OWNER_ID' => $ownerID), array())
		: 0;
}

Добавить комментарий