<#-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <#-- NOTE: this template is used for the orderstatus screen in ecommerce AND for order notification emails through the OrderNoticeEmail.ftl file --> <#-- the "urlPrefix" value will be prepended to URLs by the ofbizUrl transform if/when there is no "request" object in the context --> <#if baseEcommerceSecureUrl??><#assign urlPrefix = baseEcommerceSecureUrl/> <#if (orderHeader.externalId)?? && (orderHeader.externalId)?has_content > <#assign externalOrder = "(" + orderHeader.externalId + ")"/>

<#if maySelectItems?default("N") == "Y" && returnLink?default("N") == "Y" && (orderHeader.statusId)! == "ORDER_COMPLETED" && roleTypeId! == "PLACING_CUSTOMER"> makeReturn?orderId=${orderHeader.orderId}" class="submenutextright">${uiLabelMap.OrderRequestReturn} ${uiLabelMap.OrderOrder} <#if orderHeader?has_content> ${uiLabelMap.CommonNbr} orderstatus?orderId=${orderHeader.orderId}" class="lightbuttontext">${orderHeader.orderId} ${uiLabelMap.CommonInformation} <#if (orderHeader.orderId)??> ${externalOrder!} [ order.pdf?orderId=${(orderHeader.orderId)!}" target="_BLANK" class="lightbuttontext">PDF ]

<#-- placing customer information -->
<#if paymentMethods?has_content || paymentMethodType?has_content || billingAccount?has_content> <#-- order payment info -->

${uiLabelMap.AccountingPaymentInformation}

<#-- offline payment address infomation :: change this to use Company's address -->
<#-- right side -->
<#if orderItemShipGroups?has_content>

${uiLabelMap.OrderShippingInformation}

<#-- shipping address --> <#assign groupIdx = 0> <#list orderItemShipGroups as shipGroup> <#if orderHeader?has_content> <#assign shippingAddress = shipGroup.getRelatedOne("PostalAddress", false)!> <#assign groupNumber = shipGroup.shipGroupSeqId!> <#else> <#assign shippingAddress = cart.getShippingAddress(groupIdx)!> <#assign groupNumber = groupIdx + 1> <#assign groupIdx = groupIdx + 1> <#-- end list of orderItemShipGroups -->