<#-- 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.OrderOrderItems}
<#list orderItems! as orderItem> <#assign itemType = orderItem.getRelatedOne("OrderItemType", false)!> <#if orderItem.productId?? && orderItem.productId == "_?_"> <#else> <#if maySelectItems?default(false)> <#-- show info from workeffort if it was a rental item --> <#if orderItem.orderItemTypeId?? && orderItem.orderItemTypeId == "RENTAL_ORDER_ITEM"> <#assign WorkOrderItemFulfillments = orderItem.getRelated("WorkOrderItemFulfillment", null, null, false)!> <#if WorkOrderItemFulfillments?has_content> <#list WorkOrderItemFulfillments as WorkOrderItemFulfillment> <#assign workEffort = WorkOrderItemFulfillment.getRelatedOne("WorkEffort", true)!> <#break><#-- need only the first one --> <#-- now show adjustment details per line item --> <#assign itemAdjustments = localOrderReadHelper.getOrderItemAdjustments(orderItem)> <#list itemAdjustments as orderItemAdjustment> <#if maySelectItems?default(false)> <#if !orderItems?has_content> <#list headerAdjustmentsToShow! as orderHeaderAdjustment>
${uiLabelMap.ProductProduct} ${uiLabelMap.OrderQuantity} ${uiLabelMap.CommonUnitPrice} ${uiLabelMap.OrderAdjustments} ${uiLabelMap.OrderSubTotal}

>> ${orderItem.itemDescription}
<#if orderItem.productId??> ${orderItem.productId} - ${orderItem.itemDescription} <#else> ${(itemType.description)!} : ${orderItem.itemDescription!}
${orderItem.quantity?string.number}
<@ofbizCurrency amount=orderItem.unitPrice isoCode=currencyUomId/>
<@ofbizCurrency amount=localOrderReadHelper.getOrderItemAdjustmentsTotal(orderItem) isoCode=currencyUomId/>
<@ofbizCurrency amount=localOrderReadHelper.getOrderItemSubTotal(orderItem) isoCode=currencyUomId/>
  
${uiLabelMap.CommonFrom}: ${workEffort.estimatedStartDate?string("yyyy-MM-dd")} ${uiLabelMap.CommonTo}: ${workEffort.estimatedCompletionDate?string("yyyy-MM-dd")} ${uiLabelMap.OrderNbrPersons}: ${workEffort.reservPersons}
${uiLabelMap.OrderAdjustment}: ${localOrderReadHelper.getAdjustmentType(orderItemAdjustment)}  <#if orderItemAdjustment.description?has_content>: ${StringUtil.wrapString(orderItemAdjustment.get("description",locale))} <#if orderItemAdjustment.orderAdjustmentTypeId == "SALES_TAX"> <#if orderItemAdjustment.primaryGeoId?has_content> <#assign primaryGeo = orderItemAdjustment.getRelatedOne("PrimaryGeo", true)/> <#if primaryGeo.geoName?has_content> ${uiLabelMap.OrderJurisdiction}: ${primaryGeo.geoName} [${primaryGeo.abbreviation!}] <#if orderItemAdjustment.secondaryGeoId?has_content> <#assign secondaryGeo = orderItemAdjustment.getRelatedOne("SecondaryGeo", true)/> (in: ${secondaryGeo.geoName} [${secondaryGeo.abbreviation!}]) <#if orderItemAdjustment.sourcePercentage??>${uiLabelMap.OrderRate}: ${orderItemAdjustment.sourcePercentage}% <#if orderItemAdjustment.customerReferenceId?has_content>${uiLabelMap.OrderCustomerTaxId}: ${orderItemAdjustment.customerReferenceId} <#if orderItemAdjustment.exemptAmount??>${uiLabelMap.OrderExemptAmount}: ${orderItemAdjustment.exemptAmount}
   
<#if orderItemAdjustment.amountAlreadyIncluded?has_content> <@ofbizCurrency amount=orderItemAdjustment.amountAlreadyIncluded isoCode=currencyUomId/> <#else> <@ofbizCurrency amount=localOrderReadHelper.getOrderItemAdjustmentTotal(orderItem, orderItemAdjustment) isoCode=currencyUomId/>
    
${uiLabelMap.checkhelpertotalsdonotmatchordertotal}

${uiLabelMap.OrderSubTotal}
 <#if orderSubTotal??><@ofbizCurrency amount=orderSubTotal isoCode=currencyUomId/>
${localOrderReadHelper.getAdjustmentType(orderHeaderAdjustment)}
<@ofbizCurrency amount=localOrderReadHelper.getOrderAdjustmentTotal(orderHeaderAdjustment) isoCode=currencyUomId/>
${uiLabelMap.FacilityShippingAndHandling}
<#if orderShippingTotal??><@ofbizCurrency amount=orderShippingTotal isoCode=currencyUomId/>
${uiLabelMap.OrderSalesTax}
<#if orderTaxTotal??><@ofbizCurrency amount=orderTaxTotal isoCode=currencyUomId/>

${uiLabelMap.OrderGrandTotal}
<#if orderGrandTotal??><@ofbizCurrency amount=orderGrandTotal isoCode=currencyUomId/>