CCrmCurrency::CheckFields

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmCurrency
  4. CheckFields
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_currency.php
  • Класс: \CCrmCurrency
  • Вызов: CCrmCurrency::CheckFields
static function CheckFields($action, &$arFields, $ID)
{
	if(isset($arFields['AMOUNT_CNT']))
	{
		$arFields['AMOUNT_CNT'] = intval($arFields['AMOUNT_CNT']);
	}

	if(isset($arFields['AMOUNT']))
	{
		$arFields['AMOUNT'] = doubleval($arFields['AMOUNT']);
	}

//		if(isset($arFields['SORT']))
//		{
//			$SORT = intval($arFields['SORT']);
//			$arFields['SORT'] = ($SORT > 255 || $SORT < 0 ? 0 : $SORT);
//		}

	return true;
}

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