- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/mobile_helper.php
- Класс: \CCrmMobileHelper
- Вызов: CCrmMobileHelper::getProductFields
static function getProductFields()
{
$fields = array(
'ID' => array('id' => 'ID', 'name' => GetMessage('CRM_COLUMN_PRODUCT_ID')),
// 'NAME' => array('id' => 'NAME', 'name' => GetMessage('CRM_COLUMN_PRODUCT_NAME')),
'FORMATTED_PRICE' => array('id' => 'FORMATTED_PRICE', 'name' => GetMessage('CRM_COLUMN_PRODUCT_PRICE')),
'MEASURE' => array('id' => 'MEASURE', 'name' => GetMessage('CRM_COLUMN_PRODUCT_MEASURE')),
'SECTION_ID' => array('id' => 'SECTION_ID', 'name' => GetMessage('CRM_COLUMN_PRODUCT_SECTION')),
'SORT' => array('id' => 'SORT', 'name' => GetMessage('CRM_COLUMN_PRODUCT_SORT')),
'ACTIVE' => array('id' => 'ACTIVE', 'name' => GetMessage('CRM_COLUMN_PRODUCT_ACTIVE')),
'DESCRIPTION' => array('id' => 'DESCRIPTION', 'name' => GetMessage('CRM_COLUMN_PRODUCT_DESCRIPTION')),
'PREVIEW_PICTURE' => array('id' => 'PREVIEW_PICTURE', 'name' => GetMessage('CRM_COLUMN_PRODUCT_PREVIEW_PICTURE')),
'DETAIL_PICTURE' => array('id' => 'DETAIL_PICTURE', 'name' => GetMessage('CRM_COLUMN_PRODUCT_DETAIL_PICTURE')),
);
if ($bVatMode)
{
$fields['VAT_ID'] = array('id' => 'VAT_ID', 'name' => GetMessage('CRM_COLUMN_VAT_ID'));
$fields['VAT_INCLUDED'] = array('id' => 'VAT_INCLUDED', 'name' => GetMessage('CRM_COLUMN_VAT_INCLUDED'));
}
return $fields;
}