#--
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.OrderSalesHistory}
${uiLabelMap.CommonDate} |
${uiLabelMap.OrderOrder} ${uiLabelMap.CommonNbr} |
${uiLabelMap.CommonAmount} |
${uiLabelMap.CommonStatus} |
${uiLabelMap.OrderInvoices} |
|
<#if orderHeaderList?has_content>
<#list orderHeaderList as orderHeader>
<#assign status = orderHeader.getRelatedOne("StatusItem", true) />
${orderHeader.orderDate.toString()} |
${orderHeader.orderId} |
<@ofbizCurrency amount=orderHeader.grandTotal isoCode=orderHeader.currencyUom /> |
${status.get("description",locale)} |
<#-- invoices -->
<#assign invoices = delegator.findByAnd("OrderItemBilling", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("orderId", "${orderHeader.orderId}"), Static["org.apache.ofbiz.base.util.UtilMisc"].toList("invoiceId"), false) />
<#assign distinctInvoiceIds = Static["org.apache.ofbiz.entity.util.EntityUtil"].getFieldListFromEntityList(invoices, "invoiceId", true)>
<#if distinctInvoiceIds?has_content>
<#list distinctInvoiceIds as invoiceId>
(${invoiceId} PDF)
#list>
|
<#else>
|
#if>
${uiLabelMap.CommonView}
|
#list>
<#else>
${uiLabelMap.OrderNoOrderFound} |
#if>
${uiLabelMap.OrderPurchaseHistory}
${uiLabelMap.CommonDate} |
${uiLabelMap.OrderOrder} ${uiLabelMap.CommonNbr} |
${uiLabelMap.CommonAmount} |
${uiLabelMap.CommonStatus} |
|
<#if porderHeaderList?has_content>
<#list porderHeaderList as porderHeader>
<#assign pstatus = porderHeader.getRelatedOne("StatusItem", true) />
${porderHeader.orderDate.toString()} |
${porderHeader.orderId} |
<@ofbizCurrency amount=porderHeader.grandTotal isoCode=porderHeader.currencyUom /> |
${pstatus.get("description",locale)} |
${uiLabelMap.CommonView}
|
#list>
<#else>
${uiLabelMap.OrderNoOrderFound} |
#if>
${uiLabelMap.EcommerceDownloadsAvailableTitle}
${uiLabelMap.OrderOrder} ${uiLabelMap.CommonNbr} |
${uiLabelMap.ProductProductName} |
${uiLabelMap.CommonName} |
${uiLabelMap.CommonDescription} |
|
<#if downloadOrderRoleAndProductContentInfoList?has_content>
<#list downloadOrderRoleAndProductContentInfoList as downloadOrderRoleAndProductContentInfo>
${downloadOrderRoleAndProductContentInfo.orderId} |
${downloadOrderRoleAndProductContentInfo.productName} |
${downloadOrderRoleAndProductContentInfo.contentName!} |
${downloadOrderRoleAndProductContentInfo.description!} |
Download
|
#list>
<#else>
${uiLabelMap.EcommerceDownloadNotFound} |
#if>