- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/invoice/internals/shipmentitem.php
- Класс: Bitrix\Crm\Invoice\Internals\ShipmentItemTable
- Вызов: ShipmentItemTable::getMap
static function getMap()
{
global $DB;
return array(
'ID' => array(
'data_type' => 'integer',
'primary' => true,
'autocomplete' => true,
'title' => Loc::getMessage('ORDER_DELIVERY_BASKET_ENTITY_ID_FIELD'),
),
'ORDER_DELIVERY_ID' => array(
'data_type' => 'integer',
'required' => true,
'title' => Loc::getMessage('ORDER_DELIVERY_BASKET_ENTITY_ORDER_DELIVERY_ID_FIELD'),
),
'DELIVERY' => array(
'data_type' => 'Shipment',
'reference' => array(
'=this.ORDER_DELIVERY_ID' => 'ref.ID'
)
),
'BASKET_ID' => array(
'data_type' => 'integer',
'required' => true,
'title' => Loc::getMessage('ORDER_DELIVERY_BASKET_ENTITY_BASKET_ID_FIELD'),
),
'BASKET' => array(
'data_type' => '\Bitrix\Crm\Invoice\Internals\Basket',
'reference' => array(
'=this.BASKET_ID' => 'ref.ID'
)
),
'DATE_INSERT' => array(
'data_type' => 'datetime'
),
'DATE_INSERT_SHORT' => array(
'data_type' => 'datetime',
'expression' => array(
$DB->datetimeToDateFunction('%s'), 'DATE_INSERT'
)
),
'QUANTITY' => array(
'data_type' => 'float',
'required' => true,
'title' => Loc::getMessage('ORDER_DELIVERY_BASKET_ENTITY_QUANTITY_FIELD'),
),
'RESERVED_QUANTITY' => array(
'data_type' => 'float',
'required' => true,
'title' => Loc::getMessage('ORDER_DELIVERY_BASKET_ENTITY_RESERVED_QUANTITY_FIELD'),
),
'XML_ID' => array(
'data_type' => 'string'
),
);
}