CCrmStatusInvoice::Add

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmStatusInvoice
  4. Add
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_status_invoice.php
  • Класс: \CCrmStatusInvoice
  • Вызов: CCrmStatusInvoice::Add
public function Add(array $arFields, bool $bCheckStatusId = true)
{
	$arStatus = [
		'STATUS_ID' => self::getNewId(),
		'ENTITY_ID' => 'INVOICE_STATUS',
		'NAME' => $arFields['NAME']
	];

	if (isset($arFields['SORT']))
		$arStatus['SORT'] = $arFields['SORT'];

	return parent::Add($arStatus, $bCheckStatusId);
}

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