<#-- 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. -->
${uiLabelMap.OrderReturnItems}
<#if (orderHeader.currencyUom)?has_content> <#if returnableItems?has_content> <#assign rowCount = 0> <#list returnableItems.keySet() as orderItem> <#if !orderItem.orderAdjustmentId?has_content> <#-- filter orderAdjustments --> <#-- --> <#assign returnItemType = returnItemTypeMap.get(returnableItems.get(orderItem).get("itemTypeKey"))/> <#-- need some order item information --> <#assign orderHeader = orderItem.getRelatedOne("OrderHeader", false)> <#assign itemCount = orderItem.quantity> <#assign itemPrice = orderItem.unitPrice> <#-- end of order item information --> <#assign rowCount = rowCount + 1> <#else>

${uiLabelMap.OrderReturnItemsFromOrder} ${uiLabelMap.CommonNbr}${orderId}

${uiLabelMap.CommonSelectAll} 
${uiLabelMap.CommonDescription}
${uiLabelMap.CommonQuantity}
${uiLabelMap.EcommercePrice}
${uiLabelMap.OrderReason}
${uiLabelMap.OrderRequestedResponse}
 

<#if orderItem.productId??>  ${orderItem.productId} ${orderItem.itemDescription}
<@ofbizCurrency amount=returnableItems.get(orderItem).get("returnablePrice") isoCode=orderHeader.currencyUom/>

${uiLabelMap.OrderSelectShipFromAddress}:

<#list shippingContactMechList as shippingContactMech> <#assign shippingAddress = shippingContactMech.getRelatedOne("PostalAddress", false)>
<#if shippingAddress.toName?has_content>${uiLabelMap.CommonTo}: ${shippingAddress.toName}
<#if shippingAddress.attnName?has_content>${uiLabelMap.PartyAddrAttnName}: ${shippingAddress.attnName}
<#if shippingAddress.address1?has_content>${shippingAddress.address1}
<#if shippingAddress.address2?has_content>${shippingAddress.address2}
<#if shippingAddress.city?has_content>${shippingAddress.city} <#if shippingAddress.stateProvinceGeoId?has_content>
${shippingAddress.stateProvinceGeoId} <#if shippingAddress.postalCode?has_content>
${shippingAddress.postalCode} <#if shippingAddress.countryGeoId?has_content>
${shippingAddress.countryGeoId} [${uiLabelMap.CommonUpdate}]

${uiLabelMap.OrderReturnSelectedItems}
${uiLabelMap.OrderNoReturnableItems} ${uiLabelMap.CommonNbr}${orderId}