<#-- 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.OrderOrderQuoteItems}
<#assign totalQuoteAmount = 0.0> <#assign alt_row = false/> <#list quoteItems as quoteItem> <#assign selectedAmount = quoteItem.selectedAmount?default(1)> <#if selectedAmount == 0> <#assign selectedAmount = 1/> <#assign quoteItemAmount = quoteItem.quoteUnitPrice?default(0) * quoteItem.quantity?default(0) * selectedAmount> <#assign quoteItemAdjustments = quoteItem.getRelated("QuoteAdjustment", null, null, false)> <#assign totalQuoteItemAdjustmentAmount = 0.0> <#list quoteItemAdjustments as quoteItemAdjustment> <#assign totalQuoteItemAdjustmentAmount = quoteItemAdjustment.amount?default(0) + totalQuoteItemAdjustmentAmount> <#assign totalQuoteItemAmount = quoteItemAmount + totalQuoteItemAdjustmentAmount> <#assign totalQuoteAmount = totalQuoteAmount + totalQuoteItemAmount> class="alternate-row" > <#list quoteTerms as quoteTerm> <#assign termDescription = delegator.findOne("TermType",{"termTypeId":quoteTerm.termTypeId}, false)> class="alternate-row" > <#-- now show adjustment details per line item --> <#list quoteItemAdjustments as quoteItemAdjustment> <#assign adjustmentType = quoteItemAdjustment.getRelatedOne("OrderAdjustmentType", false)> class="alternate-row" > <#-- toggle the row color --> <#assign alt_row = !alt_row> <#assign totalQuoteHeaderAdjustmentAmount = 0.0> <#assign findAdjustment = false> <#list quoteAdjustments as quoteAdjustment> <#assign adjustmentType = quoteAdjustment.getRelatedOne("OrderAdjustmentType", false)> <#if !quoteAdjustment.quoteItemSeqId??> <#assign totalQuoteHeaderAdjustmentAmount = quoteAdjustment.amount?default(0) + totalQuoteHeaderAdjustmentAmount> <#assign findAdjustment = true> <#assign grandTotalQuoteAmount = totalQuoteAmount + totalQuoteHeaderAdjustmentAmount> <#if findAdjustment>
${uiLabelMap.ProductItem} ${uiLabelMap.ProductProduct} ${uiLabelMap.ProductQuantity} ${uiLabelMap.OrderSelAmount} ${uiLabelMap.OrderOrderQuoteUnitPrice} ${uiLabelMap.OrderOrderQuoteLeadTimeDays} ${uiLabelMap.CommonComments} ${uiLabelMap.OrderAdjustments} ${uiLabelMap.CommonSubtotal}
     ${uiLabelMap.OrderOrderTermType}      ${uiLabelMap.OrderOrderTermValue}      ${uiLabelMap.OrderOrderTermDays}      ${uiLabelMap.OrderQuoteTermDescription}  
<#if showQuoteManagementLinks?? && quoteItem.isPromo?default("N") == "N" && quote.statusId=="QUO_CREATED"> ${quoteItem.quoteItemSeqId} <#else> ${quoteItem.quoteItemSeqId}
<#assign quoteTerms = delegator.findByAnd("QuoteTerm", {"quoteId" : quoteItem.quoteId, "quoteItemSeqId" : quoteItem.quoteItemSeqId}, null, false)>
<#if quoteItem.productId??> <#assign product = quoteItem.getRelatedOne("Product", false)/> ${(product.internalName)!}  <#if showQuoteManagementLinks??> <#if quoteItem.productId??> ${quoteItem.productId} <#else> ${uiLabelMap.ProductCreateProduct} <#else> ${quoteItem.productId!}
${quoteItem.quantity!} ${quoteItem.selectedAmount!} <@ofbizCurrency amount=quoteItem.quoteUnitPrice isoCode=quote.currencyUomId/> ${quoteItem.leadTimeDays!} ${quoteItem.comments!} <@ofbizCurrency amount=totalQuoteItemAdjustmentAmount isoCode=quote.currencyUomId/> <@ofbizCurrency amount=totalQuoteItemAmount isoCode=quote.currencyUomId/>
     ${termDescription.description!}      ${quoteTerm.termValue!} <#if quoteTerm.termDays??>     ${quoteTerm.termDays!} <#if quoteTerm.description??>     ${quoteTerm.description}
${adjustmentType.get("description",locale)!} <@ofbizCurrency amount=quoteItemAdjustment.amount isoCode=quote.currencyUomId/>  

${uiLabelMap.CommonSubtotal} <@ofbizCurrency amount=totalQuoteAmount isoCode=quote.currencyUomId/>

${adjustmentType.get("description",locale)!} <@ofbizCurrency amount=quoteAdjustment.amount isoCode=quote.currencyUomId/>

${uiLabelMap.OrderGrandTotal} <@ofbizCurrency amount=grandTotalQuoteAmount isoCode=quote.currencyUomId/>