Пример #1
0
            /** @var \Bitrix\Sale\Shipment  $shipment*/
            foreach ($shipments as $shipment) {
                if (!$shipment->isSystem()) {
                    echo Admin\Blocks\OrderShipment::getView($shipment, $index++);
                }
            }
            echo Admin\Blocks\OrderShipment::createNewShipmentButton();
            break;
        case "financeinfo":
            echo Admin\Blocks\OrderFinanceInfo::getView($saleOrder, false);
            break;
        case "payment":
            $payments = $saleOrder->getPaymentCollection();
            $index = 0;
            foreach ($payments as $payment) {
                echo Admin\Blocks\OrderPayment::getView($payment, $index++);
            }
            echo Admin\Blocks\OrderPayment::createButtonAddPayment('view');
            break;
        case "additional":
            echo Admin\Blocks\OrderAdditional::getView($saleOrder, $formId . "_form");
            break;
        case "basket":
            echo $orderBasket->getView();
            echo '<div style="display: none;">' . $orderBasket->settingsDialog->getHtml() . '</div>';
            break;
    }
    $tabControl->DraggableBlockEnd();
}
?>
	</div>
Пример #2
0
            break;
        case "delivery":
            $shipments = $order->getShipmentCollection();
            $index = 0;
            /** @var \Bitrix\Sale\Shipment  $shipment*/
            foreach ($shipments as $shipment) {
                if (!$shipment->isSystem()) {
                    echo Blocks\OrderShipment::getView($shipment, ++$index, 'edit');
                }
            }
            break;
        case "payment":
            $payments = $order->getPaymentCollection();
            $index = 0;
            foreach ($payments as $payment) {
                echo Blocks\OrderPayment::getView($payment, ++$index, 'edit');
            }
            break;
        case "additional":
            echo Blocks\OrderAdditional::getEdit($order, $formId . "_form", 'ORDER');
            break;
        case "basket":
            echo $orderBasket->getEdit();
            echo '<div style="display: none;">' . $orderBasket->settingsDialog->getHtml() . '</div>';
            break;
    }
    $tabControl->DraggableBlockEnd();
}
?>
	</div>
</td></tr>