Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
ordershipment.php
1<?php
2
4
6 Bitrix\Main\Page\Asset,
8
10{
11 protected $name = "delivery";
12
16 public function buildBlock()
17 {
18 $result = "";
19 $index = 0;
20 Asset::getInstance()->addJs("/bitrix/js/sale/admin/order_shipment_basket.js");
21 \Bitrix\Main\UI\Extension::load('sale.admin_order');
22 $shipmentCollection = $this->order->getShipmentCollection();
23 foreach ($shipmentCollection as $shipment)
24 {
25 if (!$shipment->isSystem())
26 {
27 $result .= Blocks\OrderShipment::getView($shipment, $index++, 'archive');
28 }
29 }
30 return $result;
31 }
32}