<#-- 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. -->

<#if orderHeaderList?has_content> <#assign alt_row = false> <#list orderHeaderList as orderHeader> <#assign status = orderHeader.getRelatedOne("StatusItem", true)> <#assign orh = Static["org.apache.ofbiz.order.order.OrderReadHelper"].getHelper(orderHeader)> <#assign billToParty = orh.getBillToParty()!> <#if billToParty?has_content> <#assign billToPartyNameResult = dispatcher.runSync("getPartyNameForDate", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("partyId", billToParty.partyId, "compareDate", orderHeader.orderDate, "userLogin", userLogin))/> <#assign billTo = billToPartyNameResult.fullName?default("[${uiLabelMap.OrderPartyNameNotFound}]")/> <#assign productStore = orderHeader.getRelatedOne("ProductStore", true)! /> class="alternate-row"> <#assign alt_row = !alt_row>
${uiLabelMap.OrderOrder} ${uiLabelMap.CommonNbr} ${uiLabelMap.OrderOrderBillToParty} ${uiLabelMap.OrderProductStore} ${uiLabelMap.CommonAmount} ${uiLabelMap.OrderTrackingCode} ${uiLabelMap.CommonStatus}
${orderHeader.orderId} ${billTo!} <#if productStore?has_content>${productStore.storeName?default(productStore.productStoreId)} <@ofbizCurrency amount=orderHeader.grandTotal isoCode=orderHeader.currencyUom/> <#assign trackingCodes = orderHeader.getRelated("TrackingCodeOrder", null, null, false)> <#list trackingCodes as trackingCode> <#if trackingCode?has_content> ${trackingCode.trackingCodeId}
${orderHeader.getRelatedOne("StatusItem", true).get("description",locale)}
<#else>

${uiLabelMap.OrderNoOrderFound}