• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/internals/storeproduct.php
  • Класс: Bitrix\Sale\Internals\StoreProductTable
  • Вызов: StoreProductTable::getMap
static function getMap()
{
	global $DB;
	$fieldsMap = array(
		'ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'autocomplete' => true
		),
		'PRODUCT_ID' => array(
			'data_type' => 'integer'
		),
		'SALE_PRODUCT' => array(
			'data_type' => 'Product',
			'reference' => array('=this.PRODUCT_ID' => 'ref.ID')
		),
		'AMOUNT' => array(
			'data_type' => 'float'
		),
		'STORE_ID' => array(
			'data_type' => 'integer',
		),
		'STORE' => array(
			'data_type' => 'Bitrix\Catalog\Store',
			'reference' => array('=this.STORE_ID' => 'ref.ID')
		)
	);

	return $fieldsMap;
}