Invoice::getEntityFields

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Invoice
  4. getEntityFields
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/bizproc/document/invoice.php
  • Класс: Bitrix\Crm\Integration\BizProc\Document\Invoice
  • Вызов: Invoice::getEntityFields
static function getEntityFields($entityType)
{
	$arResult = [
		'ID' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_ID'),
			'Type' => 'int',
			'Editable' => false,
			'Required' => false,
		],
		'LID' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_LID'),
			'Type' => 'string',
			'Editable' => false,
			'Required' => true,
		],
		'ACCOUNT_NUMBER' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_ACCOUNT_NUMBER'),
			'Type' => 'string',
			'Editable' => false,
			'Required' => true,
		],
		'DATE_INSERT' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_DATE_INSERT'),
			'Type' => 'datetime',
			'Editable' => false,
			'Required' => true,
		],
		'DATE_UPDATE' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_DATE_UPDATE'),
			'Type' => 'datetime',
			'Editable' => false,
			'Required' => true,
		],
		'PERSON_TYPE_ID' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_PERSON_TYPE_ID'),
			'Type' => 'string',
			'Editable' => false,
			'Required' => true,
		],
		'USER_ID' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_USER_ID'),
			'Type' => 'user',
			'Editable' => false,
			'Required' => true,
		],
		'PAYED' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_PAYED'),
			'Type' => 'bool',
			'Editable' => true,
			'Required' => false,
		],
		'DATE_PAYED' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_DATE_PAYED'),
			'Type' => 'datetime',
			'Editable' => true,
			'Required' => false,
		],
		'EMP_PAYED_ID' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_EMP_PAYED_ID'),
			'Type' => 'user',
			'Editable' => false,
			'Required' => false,
		],
		'DEDUCTED' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_DEDUCTED'),
			'Type' => 'bool',
			'Editable' => true,
			'Required' => false,
		],
		'DATE_DEDUCTED' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_DATE_DEDUCTED'),
			'Type' => 'datetime',
			'Editable' => true,
			'Required' => false,
		],
		'EMP_DEDUCTED_ID' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_EMP_DEDUCTED_ID'),
			'Type' => 'user',
			'Editable' => false,
			'Required' => false,
		],
		'REASON_UNDO_DEDUCTED' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_REASON_UNDO_DEDUCTED'),
			'Type' => 'string',
			'Editable' => true,
			'Required' => false,
		],
		'STATUS_ID' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_STATUS_ID'),
			'Type' => 'select',
			'Options' => self::getStatusOptions(),
			'Editable' => true,
			'Required' => true,
		],
		'DATE_STATUS' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_DATE_STATUS'),
			'Type' => 'datetime',
			'Editable' => false,
			'Required' => false,
		],
		'EMP_STATUS_ID' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_EMP_STATUS_ID'),
			'Type' => 'user',
			'Editable' => false,
			'Required' => false,
		],
		'MARKED' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_MARKED'),
			'Type' => 'bool',
			'Editable' => true,
			'Required' => false,
		],
		'DATE_MARKED' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_DATE_MARKED'),
			'Type' => 'datetime',
			'Editable' => false,
			'Required' => false,
		],
		'EMP_MARKED_ID' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_EMP_MARKED_ID'),
			'Type' => 'user',
			'Editable' => false,
			'Required' => false,
		],
		'REASON_MARKED' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_REASON_MARKED'),
			'Type' => 'string',
			'Editable' => false,
			'Required' => false,
		],
		'PRICE_DELIVERY' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_PRICE_DELIVERY'),
			'Type' => 'double',
			'Editable' => false,
			'Required' => false,
		],
		'ALLOW_DELIVERY' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_ALLOW_DELIVERY'),
			'Type' => 'bool',
			'Editable' => true,
			'Required' => false,
		],
		'DATE_ALLOW_DELIVERY' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_DATE_ALLOW_DELIVERY'),
			'Type' => 'datetime',
			'Editable' => false,
			'Required' => false,
		],
		'EMP_ALLOW_DELIVERY_ID' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_EMP_ALLOW_DELIVERY_ID'),
			'Type' => 'user',
			'Editable' => false,
			'Required' => false,
		],
		'RESERVED' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_RESERVED'),
			'Type' => 'bool',
			'Editable' => true,
			'Required' => false,
		],
		'PRICE' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_PRICE'),
			'Type' => 'double',
			'Editable' => false,
			'Required' => false,
		],
		'CURRENCY' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_CURRENCY'),
			'Type' => 'select',
			'Options' => \CCrmCurrencyHelper::PrepareListItems(),
			'Editable' => false,
			'Required' => false,
		],
		'TAX_VALUE' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_TAX_VALUE'),
			'Type' => 'double',
			'Editable' => false,
			'Required' => false,
		],
		'SUM_PAID' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_SUM_PAID'),
			'Type' => 'double',
			'Editable' => false,
			'Required' => false,
		],
		'USER_DESCRIPTION' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_USER_DESCRIPTION'),
			'Type' => 'string',
			'Editable' => false,
			'Required' => false,
		],
		'ADDITIONAL_INFO' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_ADDITIONAL_INFO'),
			'Type' => 'string',
			'Editable' => true,
			'Required' => false,
		],
		'COMMENTS' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_COMMENTS'),
			'Type' => 'string',
			'Editable' => true,
			'Required' => false,
		],
		'COMPANY_ID' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_COMPANY_ID'),
			'Type' => 'int',
			'Editable' => false,
			'Required' => false,
		],
		'CREATED_BY' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_CREATED_BY'),
			'Type' => 'user',
			'Editable' => false,
			'Required' => false,
		],
		'RESPONSIBLE_ID' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_RESPONSIBLE_ID'),
			'Type' => 'user',
			'Editable' => true,
			'Required' => false,
		],
		'DATE_PAY_BEFORE' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_DATE_PAY_BEFORE'),
			'Type' => 'date',
			'Editable' => true,
			'Required' => false,
		],
		'DATE_BILL' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_DATE_BILL'),
			'Type' => 'date',
			'Editable' => true,
			'Required' => false,
		],
		'CANCELED' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_CANCELED'),
			'Type' => 'bool',
			'Editable' => true,
			'Required' => false,
		],
		'EMP_CANCELED_ID' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_EMP_CANCELED_ID'),
			'Type' => 'user',
			'Editable' => false,
			'Required' => false,
		],
		'DATE_CANCELED' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_DATE_CANCELED'),
			'Type' => 'datetime',
			'Editable' => false,
			'Required' => false,
		],
		'REASON_CANCELED' => [
			'Name' => GetMessage('CRM_BP_DOCUMENT_INVOICE_FIELD_REASON_CANCELED'),
			'Type' => 'string',
			'Editable' => true,
			'Required' => false,
		],
	];

	return $arResult;
}

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