<#-- 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 (shoppingCartSize > 0)>
${uiLabelMap.WebPosTransactionId} ${transactionId?default("NA")} ${(paymentCash.get("description", locale))!} <@ofbizCurrency amount=cashAmount isoCode=shoppingCart.getCurrency()/> ${uiLabelMap.WebPosTotalItemSubTotal} <@ofbizCurrency amount=shoppingCart.getDisplaySubTotal() isoCode=shoppingCart.getCurrency()/>
${uiLabelMap.WebPosDrawer} ${drawerNumber?default(0)} ${(paymentCheck.get("description", locale))!} <@ofbizCurrency amount=checkAmount isoCode=shoppingCart.getCurrency()/> ${uiLabelMap.WebPosTotalPromotions} <@ofbizCurrency amount=shoppingCart.getOrderOtherAdjustmentTotal() isoCode=shoppingCart.getCurrency()/>
${uiLabelMap.WebPosTerminal} <#if isOpen>${uiLabelMap.WebPosTerminalOpen}<#else>${uiLabelMap.WebPosTerminalClose} ${(paymentGift.get("description", locale))!} <@ofbizCurrency amount=giftAmount isoCode=shoppingCart.getCurrency()/> ${uiLabelMap.WebPosTotalSalesTax} <@ofbizCurrency amount=shoppingCart.getTotalSalesTax() isoCode=shoppingCart.getCurrency()/>
${(paymentCredit.get("description", locale))!} <@ofbizCurrency amount=creditAmount isoCode=shoppingCart.getCurrency()/> ${uiLabelMap.WebPosTotalShipping} <@ofbizCurrency amount=shoppingCart.getTotalShipping() isoCode=shoppingCart.getCurrency()/>
${uiLabelMap.WebPosTransactionTotalDue} <@ofbizCurrency amount=totalDue isoCode=shoppingCart.getCurrency()/> ${uiLabelMap.WebPosTransactionTotalPay} <@ofbizCurrency amount=totalPay isoCode=shoppingCart.getCurrency()/> ${uiLabelMap.WebPosTotal} <@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency()/>
<#if (shoppingCartSize > 0)> <#-- set initial row color --> <#assign alt_row = false> <#list shoppingCart.items() as cartLine> <#assign cartLineIndex = shoppingCart.getItemIndex(cartLine)> class="pos-cart-even"<#else>class="pos-cart-odd"> <#-- toggle the row color --> <#assign alt_row = !alt_row>
${uiLabelMap.OrderProduct} ${uiLabelMap.CommonQuantity} ${uiLabelMap.WebPosUnitPrice} ${uiLabelMap.WebPosAdjustments} ${uiLabelMap.WebPosItemTotal} ${uiLabelMap.CommonRemove}
<#if cartLine.getProductId()??> <#-- product item --> <#-- start code to display a small image of the product --> <#if cartLine.getParentProductId()??> <#assign parentProductId = cartLine.getParentProductId()/> <#else> <#assign parentProductId = cartLine.getProductId()/> <#assign smallImageUrl = Static["org.apache.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(cartLine.getProduct(), "SMALL_IMAGE_URL", locale, dispatcher, "url")!> <#if !smallImageUrl?string?has_content><#assign smallImageUrl = "/images/defaultImage.jpg"> <#if smallImageUrl?string?has_content> <#-- end code to display a small image of the product --> ${cartLine.getProductId()} - ${cartLine.getName()!} : ${cartLine.getDescription()!} <#else> <#-- this is a non-product item --> ${cartLine.getItemTypeDescription()!} : ${cartLine.getName()!}
${cartLine.getQuantity()?string.number}
<@ofbizCurrency amount=cartLine.getDisplayPrice() isoCode=shoppingCart.getCurrency()/>
<@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency()/>
<@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency()/>

${shoppingCartSize?default(0)} ${totalQuantity?default(0)}     <@ofbizCurrency amount=shoppingCart.getDisplaySubTotal() isoCode=shoppingCart.getCurrency()/>