8namespace Bitrix\Sale\Internals;
11use Bitrix\Main\Localization\Loc;
12use Bitrix\Main\ORM\Data\DataManager;
14Loc::loadMessages(__FILE__);
70 $itemsFromDbList = ShipmentItemStoreTable::getList(
73 'ORDER_DELIVERY_BASKET_ID' => $id,
75 "select" =>
array(
"ID")
78 while ($itemsFromDbItem = $itemsFromDbList->fetch())
79 ShipmentItemStoreTable::delete($itemsFromDbItem[
'ID']);
91 return 'b_sale_order_dlv_basket';
105 'data_type' =>
'integer',
107 'autocomplete' =>
true,
108 'title' => Loc::getMessage(
'ORDER_DELIVERY_BASKET_ENTITY_ID_FIELD'),
110 'ORDER_DELIVERY_ID' =>
array(
111 'data_type' =>
'integer',
113 'title' => Loc::getMessage(
'ORDER_DELIVERY_BASKET_ENTITY_ORDER_DELIVERY_ID_FIELD'),
116 'data_type' =>
'Shipment',
117 'reference' =>
array(
118 '=this.ORDER_DELIVERY_ID' =>
'ref.ID'
121 'BASKET_ID' =>
array(
122 'data_type' =>
'integer',
124 'title' => Loc::getMessage(
'ORDER_DELIVERY_BASKET_ENTITY_BASKET_ID_FIELD'),
127 'data_type' =>
'Bitrix\Sale\Internals\Basket',
128 'reference' =>
array(
129 '=this.BASKET_ID' =>
'ref.ID'
132 'DATE_INSERT' =>
array(
133 'data_type' =>
'datetime'
135 'DATE_INSERT_SHORT' =>
array(
136 'data_type' =>
'datetime',
137 'expression' =>
array(
138 $DB->datetimeToDateFunction(
'%s'),
'DATE_INSERT'
142 'data_type' =>
'float',
144 'title' => Loc::getMessage(
'ORDER_DELIVERY_BASKET_ENTITY_QUANTITY_FIELD'),
146 'RESERVED_QUANTITY' =>
array(
147 'data_type' =>
'float',
149 'title' => Loc::getMessage(
'ORDER_DELIVERY_BASKET_ENTITY_RESERVED_QUANTITY_FIELD'),
151 'XML_ID' =>
array(
'data_type' =>
'string'),
static deleteWithItems($id)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)