<#-- 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. --> <#-- NOTE: this template is used for the orderstatus screen in ecommerce AND for order notification emails through the OrderNoticeEmail.ftl file --> <#-- the "urlPrefix" value will be prepended to URLs by the ofbizUrl transform if/when there is no "request" object in the context --> <#if baseEcommerceSecureUrl??><#assign urlPrefix = baseEcommerceSecureUrl/>
<#if maySelectItems?default("N") == "Y" >

<#assign numColumns = 8> ${uiLabelMap.OrderOrderItems} <#if maySelectItems?default("N") == "Y" && roleTypeId! == "PLACING_CUSTOMER"> <#assign numColumns = 11> ${uiLabelMap.OrderAddAllToCart} ${uiLabelMap.OrderAddCheckedToCart} createShoppingListFromOrder?orderId=${orderHeader.orderId}&frequency=6&intervalNumber=1&shoppingListTypeId=SLT_AUTO_REODR" class="submenutextright">${uiLabelMap.OrderSendMeThisEveryMonth}

<#if maySelectItems?default("N") == "Y"> <#else> <#if maySelectItems?default("N") == "Y" && roleTypeId! == "PLACING_CUSTOMER"> <#if maySelectItems?default("N") == "Y"> <#list headerAdjustmentsToShow as orderHeaderAdjustment> <#if maySelectItems?default("N") == "Y"> <#if maySelectItems?default("N") == "Y"> <#if maySelectItems?default("N") == "Y"> <#if maySelectItems?default("N") == "Y"> <#else> <#if maySelectItems?default("N") == "Y"> <#list orderItems as orderItem> <#-- get info from workeffort and calculate rental quantity, if it was a rental item --> <#assign rentalQuantity = 1> <#-- no change if no rental item --> <#if orderItem.orderItemTypeId == "RENTAL_ORDER_ITEM" && workEfforts??> <#list workEfforts as workEffort> <#if workEffort.workEffortId == orderItem.orderItemSeqId> <#assign rentalQuantity = localOrderReadHelper.getWorkEffortRentalQuantity(workEffort)> <#assign workEffortSave = workEffort> <#break> <#else> <#assign WorkOrderItemFulfillments = orderItem.getRelated("WorkOrderItemFulfillment", null, null, false)!> <#if WorkOrderItemFulfillments?has_content> <#list WorkOrderItemFulfillments as WorkOrderItemFulfillment> <#assign workEffortSave = WorkOrderItemFulfillment.getRelatedOne("WorkEffort", true)!> <#break> <#if !orderItem.productId?? || orderItem.productId == "_?_"> <#else> <#assign product = orderItem.getRelatedOne("Product", true)!/> <#-- should always exist because of FK constraint, but just in case --> <#if !(maySelectItems?default("N") == "Y")> <#if maySelectItems?default("N") == "Y"> <#if maySelectItems?default("N") == "Y" && roleTypeId! == "PLACING_CUSTOMER"> <#-- now cancel reason and comment field --> <#if maySelectItems?default("N") == "Y" && (orderHeader.statusId != "ORDER_SENT" && orderItem.statusId != "ITEM_COMPLETED" && orderItem.statusId != "ITEM_CANCELLED" && pickedQty == 0)> <#-- show info from workeffort if it was a rental item --> <#if orderItem.orderItemTypeId == "RENTAL_ORDER_ITEM"> <#if workEffortSave??> <#-- now show adjustment details per line item --> <#assign itemAdjustments = localOrderReadHelper.getOrderItemAdjustments(orderItem)> <#list itemAdjustments as orderItemAdjustment> <#if maySelectItems?default("N") == "Y"> <#-- show the order item ship group info --> <#assign orderItemShipGroupAssocs = orderItem.getRelated("OrderItemShipGroupAssoc", null, null, false)!> <#if orderItemShipGroupAssocs?has_content> <#list orderItemShipGroupAssocs as shipGroupAssoc> <#assign shipGroup = shipGroupAssoc.getRelatedOne("OrderItemShipGroup", false)!> <#assign shipGroupAddress = (shipGroup.getRelatedOne("PostalAddress", false))!> <#if orderItems?size == 0 || !orderItems?has_content>
${uiLabelMap.OrderProduct}${uiLabelMap.OrderQtyOrdered} ${uiLabelMap.OrderQtyPicked} ${uiLabelMap.OrderQtyShipped} ${uiLabelMap.OrderQtyCanceled} ${uiLabelMap.OrderQtyOrdered} ${uiLabelMap.EcommerceUnitPrice} ${uiLabelMap.OrderAdjustments} ${uiLabelMap.CommonSubtotal}
${uiLabelMap.CommonSubtotal} <@ofbizCurrency amount=orderSubTotal isoCode=currencyUomId/>
${localOrderReadHelper.getAdjustmentType(orderHeaderAdjustment)} <@ofbizCurrency amount=localOrderReadHelper.getOrderAdjustmentTotal(orderHeaderAdjustment) isoCode=currencyUomId/>
${uiLabelMap.OrderShippingAndHandling} <@ofbizCurrency amount=orderShippingTotal isoCode=currencyUomId/>
${uiLabelMap.OrderSalesTax} <@ofbizCurrency amount=orderTaxTotal isoCode=currencyUomId/>
${uiLabelMap.OrderGrandTotal} <@ofbizCurrency amount=orderGrandTotal isoCode=currencyUomId/>
${orderItem.itemDescription?default("")} " class="linktext">${orderItem.productId} - ${orderItem.itemDescription?default("")} <#assign orderItemAttributes = orderItem.getRelated("OrderItemAttribute", null, null, false)/> <#if orderItemAttributes?has_content>
    <#list orderItemAttributes as orderItemAttribute>
  • ${orderItemAttribute.attrName} : ${orderItemAttribute.attrValue}
<#if product?has_content> <#if product.piecesIncluded?? && product.piecesIncluded?long != 0> [${uiLabelMap.OrderPieces}: ${product.piecesIncluded}] <#if (product.quantityIncluded?? && product.quantityIncluded != 0) || product.quantityUomId?has_content> <#assign quantityUom = product.getRelatedOne("QuantityUom", true)!/> [${uiLabelMap.CommonQuantity} : ${product.quantityIncluded!} ${((quantityUom.abbreviation)?default(product.quantityUomId))!}] <#if (product.productWeight?? && product.productWeight != 0) || product.weightUomId?has_content> <#assign weightUom = product.getRelatedOne("WeightUom", true)!/> [${uiLabelMap.CommonWeight} : ${product.productWeight!} ${((weightUom.abbreviation)?default(product.weightUomId))!}] <#if (product.productHeight?? && product.productHeight != 0) || product.heightUomId?has_content> <#assign heightUom = product.getRelatedOne("HeightUom", true)!/> [${uiLabelMap.CommonHeight} : ${product.productHeight!} ${((heightUom.abbreviation)?default(product.heightUomId))!}] <#if (product.productWidth?? && product.productWidth != 0) || product.widthUomId?has_content> <#assign widthUom = product.getRelatedOne("WidthUom", true)!/> [${uiLabelMap.CommonWidth} : ${product.productWidth!} ${((widthUom.abbreviation)?default(product.widthUomId))!}] <#if (product.productDepth?? && product.productDepth != 0) || product.depthUomId?has_content> <#assign depthUom = product.getRelatedOne("DepthUom", true)!/> [${uiLabelMap.CommonDepth} : ${product.productDepth!} ${((depthUom.abbreviation)?default(product.depthUomId))!}] <#if maySelectItems?default("N") == "Y"> <#assign returns = orderItem.getRelated("ReturnItem", null, null, false)!> <#if returns?has_content> <#list returns as return> <#assign returnHeader = return.getRelatedOne("ReturnHeader", false)> <#if returnHeader.statusId != "RETURN_CANCELLED"> <#if returnHeader.statusId == "RETURN_REQUESTED" || returnHeader.statusId == "RETURN_APPROVED"> <#assign displayState = "Return Pending"> <#else> <#assign displayState = "Returned"> ${displayState} (#${return.returnId})
${orderItem.quantity?string.number} <#assign pickedQty = localOrderReadHelper.getItemPickedQuantityBd(orderItem)> <#if pickedQty gt 0 && orderHeader.statusId == "ORDER_APPROVED">${pickedQty?default(0)?string.number}<#else>${pickedQty?default(0)?string.number} <#assign shippedQty = localOrderReadHelper.getItemShippedQuantity(orderItem)> ${shippedQty?default(0)?string.number} <#assign canceledQty = localOrderReadHelper.getItemCanceledQuantity(orderItem)> ${canceledQty?default(0)?string.number} <@ofbizCurrency amount=orderItem.unitPrice isoCode=currencyUomId/> <@ofbizCurrency amount=localOrderReadHelper.getOrderItemAdjustmentsTotal(orderItem) isoCode=currencyUomId/> <#if workEfforts??> <@ofbizCurrency amount=localOrderReadHelper.getOrderItemTotal(orderItem)*rentalQuantity isoCode=currencyUomId/> <#else> <@ofbizCurrency amount=localOrderReadHelper.getOrderItemTotal(orderItem) isoCode=currencyUomId/>
${uiLabelMap.OrderReturnReason} ${uiLabelMap.CommonComments} ${uiLabelMap.CommonCancel}
${uiLabelMap.CommonFrom} : ${workEffortSave.estimatedStartDate?string("yyyy-MM-dd")} ${uiLabelMap.CommonUntil} ${workEffortSave.estimatedCompletionDate?string("yyyy-MM-dd")} ${uiLabelMap.CommonFor} ${workEffortSave.reservPersons} ${uiLabelMap.CommonPerson}(s)
${uiLabelMap.EcommerceAdjustment} : ${StringUtil.wrapString(localOrderReadHelper.getAdjustmentType(orderItemAdjustment))} <#if orderItemAdjustment.description?has_content> : ${StringUtil.wrapString(orderItemAdjustment.description)} <#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)/> (${uiLabelMap.CommonIn}: ${secondaryGeo.geoName} [${secondaryGeo.abbreviation!}]) <#if orderItemAdjustment.sourcePercentage??>${uiLabelMap.EcommerceRate} : ${orderItemAdjustment.sourcePercentage} <#if orderItemAdjustment.customerReferenceId?has_content>${uiLabelMap.OrderCustomerTaxId} : ${orderItemAdjustment.customerReferenceId} <#if orderItemAdjustment.exemptAmount??>${uiLabelMap.EcommerceExemptAmount} : ${orderItemAdjustment.exemptAmount} <@ofbizCurrency amount=localOrderReadHelper.getOrderItemAdjustmentTotal(orderItem, orderItemAdjustment) isoCode=currencyUomId/>
${uiLabelMap.OrderShipGroup}: [${shipGroup.shipGroupSeqId}] ${shipGroupAddress.address1?default("N/A")} ${shipGroupAssoc.quantity?string.number}
${uiLabelMap.OrderSalesOrderLookupFailed}
<#if maySelectItems?default("N") == "Y" >