Esempio n. 1
0
                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>
</td></tr>
Esempio n. 2
0
         foreach ($shipments as $shipment) {
             if (!$shipment->isSystem()) {
                 echo Blocks\OrderShipment::getEdit($shipment, 0, '', $_POST['SHIPMENT'][1]);
             }
         }
         break;
     case "payment":
         $payments = $order->getPaymentCollection();
         if (count($payments) == 0) {
             $order->getPaymentCollection()->createItem();
         }
         $index = 0;
         foreach ($payments as $payment) {
             echo Blocks\OrderPayment::getEdit($payment, ++$index, $_POST['PAYMENT'][$index]);
         }
         echo Blocks\OrderPayment::createButtonAddPayment('edit');
         break;
     case 'relprops':
         echo Blocks\OrderBuyer::getPropsEdit($order);
         break;
     case "financeinfo":
         echo Blocks\OrderFinanceInfo::getView($order);
         break;
     case "additional":
         echo Blocks\OrderAdditional::getEdit($order, $formId . "_form", 'ORDER');
         break;
     case "statusorder":
         echo Blocks\OrderStatus::getEditSimple($USER->GetID(), 'STATUS_ID', \Bitrix\Sale\OrderStatus::getInitialStatus());
         break;
 }
 $tabControl->DraggableBlockEnd();