<#-- 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. --> <#escape x as x?xml> ${uiLabelMap.ProductItem} ${uiLabelMap.ProductProduct} ${uiLabelMap.ProductQuantity} ${uiLabelMap.OrderAmount} ${uiLabelMap.OrderOrderQuoteUnitPrice} ${uiLabelMap.OrderAdjustments} ${uiLabelMap.CommonSubtotal} <#assign rowColor = "white"> <#assign totalQuoteAmount = 0.0> <#list quoteItems as quoteItem> <#if quoteItem.productId?exists> <#assign product = quoteItem.getRelatedOne("Product", false)> <#assign quoteItemAmount = quoteItem.quoteUnitPrice?default(0) * quoteItem.quantity?default(0)> <#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> ${quoteItem.quoteItemSeqId} ${(product.internalName)?if_exists} [${quoteItem.productId?if_exists}] ${quoteItem.quantity?if_exists} ${quoteItem.selectedAmount?if_exists} <@ofbizCurrency amount=quoteItem.quoteUnitPrice isoCode=quote.currencyUomId/> <@ofbizCurrency amount=totalQuoteItemAdjustmentAmount isoCode=quote.currencyUomId/> <@ofbizCurrency amount=totalQuoteItemAmount isoCode=quote.currencyUomId/> <#list quoteItemAdjustments as quoteItemAdjustment> <#assign adjustmentType = quoteItemAdjustment.getRelatedOne("OrderAdjustmentType", false)> ${adjustmentType.get("description",locale)?if_exists} <@ofbizCurrency amount=quoteItemAdjustment.amount isoCode=quote.currencyUomId/> <#if rowColor == "white"> <#assign rowColor = "#D4D0C8"> <#else> <#assign rowColor = "white"> ${uiLabelMap.CommonSubtotal} <@ofbizCurrency amount=totalQuoteAmount isoCode=quote.currencyUomId/> <#assign totalQuoteHeaderAdjustmentAmount = 0.0> <#list quoteAdjustments as quoteAdjustment> <#assign adjustmentType = quoteAdjustment.getRelatedOne("OrderAdjustmentType", false)> <#if !quoteAdjustment.quoteItemSeqId?exists> <#assign totalQuoteHeaderAdjustmentAmount = quoteAdjustment.amount?default(0) + totalQuoteHeaderAdjustmentAmount> ${adjustmentType.get("description", locale)?if_exists} <@ofbizCurrency amount=quoteAdjustment.amount isoCode=quote.currencyUomId/> <#assign grandTotalQuoteAmount = totalQuoteAmount + totalQuoteHeaderAdjustmentAmount> ${uiLabelMap.OrderGrandTotal} <@ofbizCurrency amount=grandTotalQuoteAmount isoCode=quote.currencyUomId/>