Beispiel #1
0
            }
            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>
</td></tr>

<?php 
//--TAB order
$tabControl->EndTab();
Beispiel #2
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>

<?php 
$tabControl->EndTab();
//--TAB order
    switch ($blockCode) {
        case "goodsList":
            echo $shipmentOrderBasket->getEdit();
            echo '<div style="display: none;">' . $shipmentOrderBasket->settingsDialog->getHtml() . '</div>';
            break;
        case "shipmentStatus":
            echo \Bitrix\Sale\Helpers\Admin\Blocks\OrderShipmentStatus::getEdit($shipment);
            break;
        case "shipment":
            echo \Bitrix\Sale\Helpers\Admin\Blocks\OrderShipment::getEdit($shipment, 0, 'edit', $dataForRecovery[1]);
            break;
        case "buyer":
            echo \Bitrix\Sale\Helpers\Admin\Blocks\OrderBuyer::getView($saleOrder);
            break;
        case "additional":
            echo \Bitrix\Sale\Helpers\Admin\Blocks\OrderAdditional::getEdit($shipment, $formId . '_form', 'SHIPMENT[1]');
            break;
    }
    $tabControl->DraggableBlockEnd();
}
?>
		</div>
	</td>
</tr>

<?php 
//--TAB order
$tabControl->EndTab();
?>
</form>
<?php 
			<?php 
foreach ($blocksOrder as $blockCode) {
    $tabControl->DraggableBlockBegin(GetMessage("SALE_BLOCK_TITLE_" . toUpper($blockCode)), $blockCode);
    switch ($blockCode) {
        case "financeinfo":
            echo \Bitrix\Sale\Helpers\Admin\Blocks\OrderFinanceInfo::getView($saleOrder, $new);
            break;
        case "payment":
            $index = 1;
            echo \Bitrix\Sale\Helpers\Admin\Blocks\OrderPayment::getEdit($payment, $index, $_POST['PAYMENT'][$index]);
            break;
        case "buyer":
            echo \Bitrix\Sale\Helpers\Admin\Blocks\OrderBuyer::getView($saleOrder);
            break;
        case "additional":
            echo \Bitrix\Sale\Helpers\Admin\Blocks\OrderAdditional::getEdit($payment, $tableId . "_form", 'PAYMENT[1]');
            break;
        case "statusorder":
            echo \Bitrix\Sale\Helpers\Admin\Blocks\OrderStatus::getEditSimple($USER->GetID(), 'PAYMENT[1][ORDER_STATUS_ID]', $saleOrder->getField('STATUS_ID'));
            break;
    }
    $tabControl->DraggableBlockEnd();
}
?>
		</div>
	</td>
</tr>

</form>
<?php 
//--TAB order