$corder = _("Commit Quotations Changes");
} else {
    $idate = _("Order Date:");
    $orderitems = _("Sales Order Items");
    $deliverydetails = _("Enter Delivery Details and Confirm Order");
    $cancelorder = _("Cancel Order");
    $porder = _("Place Order");
    $corder = _("Commit Order Changes");
}
start_form();
hidden('cart_id');
$customer_error = display_order_header($_SESSION['Items'], $_SESSION['Items']->any_already_delivered() == 0, $idate);
if ($customer_error == "") {
    start_table(TABLESTYLE, "width='80%'", 10);
    echo "<tr><td>";
    display_order_summary($orderitems, $_SESSION['Items'], true);
    echo "</td></tr>";
    echo "<tr><td>";
    display_delivery_details($_SESSION['Items']);
    echo "</td></tr>";
    end_table(1);
    if ($_SESSION['Items']->trans_no == 0) {
        submit_center_first('ProcessOrder', $porder, _('Check entered data and save document'), 'default');
        submit_center_last('CancelOrder', $cancelorder, _('Cancels document entry or removes sales order when editing an old document'));
        submit_js_confirm('CancelOrder', _('You are about to void this Document.\\nDo you want to continue?'));
    } else {
        submit_center_first('ProcessOrder', $corder, _('Validate changes and update document'), 'default');
        submit_center_last('CancelOrder', $cancelorder, _('Cancels document entry or removes sales order when editing an old document'));
        if ($_SESSION['Items']->trans_type == ST_SALESORDER) {
            submit_js_confirm('CancelOrder', _('You are about to cancel undelivered part of this order.\\nDo you want to continue?'));
        } else {
function display_order_in_tab($title, $cart)
{
    display_order_summary($title, $cart, true);
}