• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/widget/data/invoiceinwork.php
  • Класс: Bitrix\Crm\Widget\Data\InvoiceInWork
  • Вызов: InvoiceInWork::prepareCategories
static function prepareCategories(array &$categories)
{
	if(isset($categories['INVOICE_IN_WORK']) && isset($categories['INVOICE_OWED']))
	{
		return;
	}

	self::includeModuleFile();

	if(!isset($categories['INVOICE_IN_WORK']))
	{
		$categories['INVOICE_IN_WORK'] = array(
			'entity' => \CCrmOwnerType::InvoiceName,
			'title' => GetMessage('CRM_INVOICE_IN_WORK_CATEGORY'),
			'name' => 'IN_WORK',
			'enableSemantics' => false
		);
	}

	if(!isset($categories['INVOICE_OWED']))
	{
		$categories['INVOICE_OWED'] = array(
			'entity' => \CCrmOwnerType::InvoiceName,
			'title' => GetMessage('CRM_INVOICE_OWED_CATEGORY'),
			'name' => 'OWED',
			'enableSemantics' => false
		);
	}
}