#-- 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 orderHeader?has_content>
${uiLabelMap.ProductProduct} | ${uiLabelMap.CommonStatus} | ${uiLabelMap.OrderQuantity} | ${uiLabelMap.OrderUnitList} | ${uiLabelMap.OrderAdjustments} | ${uiLabelMap.OrderSubTotal} | ||||||||||||||||||||||||||||||||||||||||||||||||||
${uiLabelMap.checkhelper_sales_order_lines_lookup_failed} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
>> ${orderItem.itemDescription} | <#else>
<#if orderItem.supplierProductId?has_content>
${orderItem.supplierProductId} - ${orderItem.itemDescription!}
<#elseif productId??>
${orderItem.productId?default("N/A")} - ${orderItem.itemDescription!}
<#if (product.salesDiscontinuationDate)?? && Static["org.apache.ofbiz.base.util.UtilDateTime"].nowTimestamp().after(product.salesDiscontinuationDate)>
${uiLabelMap.OrderItemDiscontinued}: ${Static["org.apache.ofbiz.base.util.UtilFormatOut"].formatDateTime(product.salesDiscontinuationDate, "", locale, timeZone)!} #if> <#elseif orderItemType??> ${orderItemType.description} - ${orderItem.itemDescription!} <#else> ${orderItem.itemDescription!} #if> <#assign orderItemAttributes = orderItem.getRelated("OrderItemAttribute", null, null, false)/> <#if orderItemAttributes?has_content>
<#assign downloadContents = delegator.findByAnd("OrderItemAndProductContentInfo", {
"orderId" : orderItem.orderId,
"orderItemSeqId" : orderItem.orderItemSeqId,
"productContentTypeId" : "DIGITAL_DOWNLOAD",
"statusId" : "ITEM_COMPLETED"},
null,
false)/>
<#if downloadContents?has_content>
<#list downloadContents as downloadContent>
${uiLabelMap.ContentDownload}
#list>
#if>
${uiLabelMap.ProductCatalog}
${uiLabelMap.OrderEcommerce}
<#if orderItemContentWrapper.get("IMAGE_URL", "url")?has_content>
${uiLabelMap.OrderViewImage}
#if>
|
#if>
||||||||||||||||||||||||||||||||||||||||||||||||||||||
>> ${orderItem.itemDescription} | <#else>
<#if productId?has_content>
<#assign product = orderItem.getRelatedOne("Product", true)>
#if>
<#if productId??>
<#-- INVENTORY -->
<#if (orderHeader.statusId != "ORDER_COMPLETED") && availableToPromiseMap?? && quantityOnHandMap?? && availableToPromiseMap.get(productId)?? && quantityOnHandMap.get(productId)??>
<#assign quantityToProduce = 0>
<#assign atpQuantity = availableToPromiseMap.get(productId)?default(0)>
<#assign qohQuantity = quantityOnHandMap.get(productId)?default(0)>
<#assign mktgPkgATP = mktgPkgATPMap.get(productId)?default(0)>
<#assign mktgPkgQOH = mktgPkgQOHMap.get(productId)?default(0)>
<#assign requiredQuantity = requiredProductQuantityMap.get(productId)?default(0)>
<#assign onOrderQuantity = onOrderProductQuantityMap.get(productId)?default(0)>
<#assign inProductionQuantity = productionProductQuantityMap.get(productId)?default(0)>
<#assign unplannedQuantity = requiredQuantity - qohQuantity - inProductionQuantity - onOrderQuantity - mktgPkgQOH>
<#if unplannedQuantity < 0><#assign unplannedQuantity = 0>#if>
|
<#-- now show status details per line item -->
<#assign currentItemStatus = orderItem.getRelatedOne("StatusItem", false)>
${uiLabelMap.CommonCurrent} ${currentItemStatus.get("description",locale)?default(currentItemStatus.statusId)}
<#if ("ITEM_CREATED" == (currentItemStatus.statusId) && "ORDER_APPROVED" == (orderHeader.statusId)) && security.hasEntityPermission("ORDERMGR", "_UPDATE", session)>
#if>
<#assign orderItemStatuses = orderReadHelper.getOrderItemStatuses(orderItem)>
<#list orderItemStatuses as orderItemStatus>
<#assign loopStatusItem = orderItemStatus.getRelatedOne("StatusItem", false)>
<#if orderItemStatus.statusDatetime?has_content>${Static["org.apache.ofbiz.base.util.UtilFormatOut"].formatDateTime(orderItemStatus.statusDatetime, "", locale, timeZone)!} #if>${loopStatusItem.get("description",locale)?default(orderItemStatus.statusId)}
#list>
|
<#-- QUANTITY -->
|
<@ofbizCurrency amount=orderItem.unitPrice isoCode=currencyUomId/> / <@ofbizCurrency amount=orderItem.unitListPrice isoCode=currencyUomId/> | <@ofbizCurrency amount=Static["org.apache.ofbiz.order.order.OrderReadHelper"].getOrderItemAdjustmentsTotal(orderItem, orderAdjustments, true, false, false) isoCode=currencyUomId/> | <#if orderItem.statusId != "ITEM_CANCELLED"> <@ofbizCurrency amount=Static["org.apache.ofbiz.order.order.OrderReadHelper"].getOrderItemSubTotal(orderItem, orderAdjustments) isoCode=currencyUomId/> <#else> <@ofbizCurrency amount=0.00 isoCode=currencyUomId/> #if> | #if> | ||||||||||||||||||||||||||||||||||||||||||||||||
<#if orderItem.orderItemTypeId != "RENTAL_ORDER_ITEM"> ${uiLabelMap.ManufacturingProductionRun} ${workEffort.workEffortId} ${uiLabelMap.OrderCurrentStatus} ${(delegator.findOne("StatusItem", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("statusId", workEffort.getString("currentStatusId")), true).get("description",locale))!} <#else> ${uiLabelMap.CommonFrom} : <#if workEffort.estimatedStartDate?has_content>${Static["org.apache.ofbiz.base.util.UtilFormatOut"].formatDate(workEffort.estimatedStartDate, "", locale, timeZone)!}#if> ${uiLabelMap.CommonTo} : <#if workEffort.estimatedCompletionDate?has_content>${Static["org.apache.ofbiz.base.util.UtilFormatOut"].formatDate(workEffort.estimatedCompletionDate, "", locale, timeZone)!}#if> ${uiLabelMap.OrderNumberOfPersons} : ${workEffort.reservPersons?default("")} #if> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
${uiLabelMap.OrderLinkedToOrderItem} (${description!}) ${linkedOrderId}/${linkedOrderItemSeqId} ${linkedOrderItemValueStatus.description!} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
${uiLabelMap.OrderLinkedFromOrderItem} (${description!}) ${linkedOrderId}/${linkedOrderItemSeqId} ${linkedOrderItemValueStatus.description!} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
${uiLabelMap.OrderLinkedToRequirement} ${linkedRequirement.requirementId} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
${uiLabelMap.OrderLinkedToQuote} ${linkedQuote.quoteId}-${linkedQuote.quoteItemSeqId} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
${uiLabelMap.OrderAdjustment} ${adjustmentType.get("description",locale)} ${StringUtil.wrapString(orderItemAdjustment.get("description",locale)!)} <#if orderItemAdjustment.comments?has_content> (${orderItemAdjustment.comments?default("")}) #if> <#if orderItemAdjustment.productPromoId?has_content> ${orderItemAdjustment.getRelatedOne("ProductPromo", false).getString("promoName")} #if> <#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> <#if orderItemAdjustment.secondaryGeoId?has_content> <#assign secondaryGeo = orderItemAdjustment.getRelatedOne("SecondaryGeo", true)/> ${uiLabelMap.CommonIn} ${secondaryGeo.geoName} [${secondaryGeo.abbreviation!}]) #if> #if> <#if orderItemAdjustment.sourcePercentage??> ${uiLabelMap.OrderRate} ${orderItemAdjustment.sourcePercentage?string("0.######")} #if> <#if orderItemAdjustment.customerReferenceId?has_content> ${uiLabelMap.OrderCustomerTaxId} ${orderItemAdjustment.customerReferenceId} #if> <#if orderItemAdjustment.exemptAmount??> ${uiLabelMap.OrderExemptAmount} ${orderItemAdjustment.exemptAmount} #if> #if> | <#if orderItemAdjustment.amountAlreadyIncluded?has_content> <@ofbizCurrency amount=orderItemAdjustment.amountAlreadyIncluded isoCode=currencyUomId/> <#else> <@ofbizCurrency amount=Static["org.apache.ofbiz.order.order.OrderReadHelper"].calcItemAdjustment(orderItemAdjustment, orderItem) isoCode=currencyUomId/> #if> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
${uiLabelMap.ProductPriceRuleNameId} [${orderItemPriceInfo.productPriceRuleId!}:${orderItemPriceInfo.productPriceActionSeqId!}] ${orderItemPriceInfo.description!} | <@ofbizCurrency amount=orderItemPriceInfo.modifyAmount isoCode=currencyUomId/> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
${uiLabelMap.CommonSurveys} ${survey.surveyId} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
${uiLabelMap.OrderEstimatedShipDate} ${Static["org.apache.ofbiz.base.util.UtilFormatOut"].formatDate(orderItem.estimatedShipDate, "", locale, timeZone)!} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
${uiLabelMap.OrderOrderQuoteEstimatedDeliveryDate} ${Static["org.apache.ofbiz.base.util.UtilFormatOut"].formatDate(orderItem.estimatedDeliveryDate, "", locale, timeZone)!} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
${uiLabelMap.OrderShipAfterDate} ${Static["org.apache.ofbiz.base.util.UtilFormatOut"].formatDate(orderItem.shipAfterDate, "", locale, timeZone)!} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
${uiLabelMap.OrderShipBeforeDate} ${Static["org.apache.ofbiz.base.util.UtilFormatOut"].formatDate(orderItem.shipBeforeDate, "", locale, timeZone)!} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
${uiLabelMap.OrderShipGroup} [${shipGroup.shipGroupSeqId}] ${shipGroupAddress.address1?default("${uiLabelMap.OrderNotShipped}")} | ${shipGroupAssoc.quantity?string.number} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
${uiLabelMap.CommonInventory} ${orderItemShipGrpInvRes.inventoryItemId} ${uiLabelMap.OrderShipGroup} ${orderItemShipGrpInvRes.shipGroupSeqId} | ${orderItemShipGrpInvRes.quantity?string.number} | <#if (orderItemShipGrpInvRes.quantityNotAvailable?has_content && orderItemShipGrpInvRes.quantityNotAvailable > 0)> [${orderItemShipGrpInvRes.quantityNotAvailable?string.number} ${uiLabelMap.OrderBackOrdered}] <#--Raise Priority --> #if> | |||||||||||||||||||||||||||||||||||||||||||||||||||||
${uiLabelMap.OrderPlannedInShipment} ${orderShipment.shipmentId}: ${orderShipment.shipmentItemSeqId} | ${orderShipment.quantity?string.number} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
<#if itemIssuance.shipmentId?has_content> ${uiLabelMap.OrderIssuedToShipmentItem} ${itemIssuance.shipmentId}: ${itemIssuance.shipmentItemSeqId!} <#else> ${uiLabelMap.OrderIssuedWithoutShipment} #if> | ${itemIssuance.quantity?default(0) - itemIssuance.cancelQuantity?default(0)} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
<#if itemIssuance.inventoryItemId?has_content>
<#assign inventoryItem = itemIssuance.getRelatedOne("InventoryItem", false)/>
${uiLabelMap.CommonInventory}
${itemIssuance.inventoryItemId}
${uiLabelMap.OrderShipGroup} ${itemIssuance.shipGroupSeqId!}
<#if (inventoryItem.serialNumber?has_content)>
${uiLabelMap.ProductSerialNumber} ${inventoryItem.serialNumber} #if> #if> |
${itemIssuance.quantity?default(0) - itemIssuance.cancelQuantity?default(0)} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
<#if shipmentReceipt.shipmentId?has_content> ${uiLabelMap.OrderShipmentReceived} ${shipmentReceipt.shipmentId}:${shipmentReceipt.shipmentItemSeqId!} #if> <#if shipmentReceipt.datetimeReceived?has_content>${Static["org.apache.ofbiz.base.util.UtilFormatOut"].formatDateTime(shipmentReceipt.datetimeReceived, "", locale, timeZone)!}#if> ${uiLabelMap.CommonInventory} ${shipmentReceipt.inventoryItemId} | ${shipmentReceipt.quantityAccepted?string.number} / ${shipmentReceipt.quantityRejected?default(0)?string.number} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
<#if orderHeaderAdjustment.comments?has_content>${orderHeaderAdjustment.comments} - #if> <#if orderHeaderAdjustment.description?has_content>${orderHeaderAdjustment.description} - #if> ${adjustmentType.get("description", locale)} | <@ofbizCurrency amount=adjustmentAmount isoCode=currencyUomId/> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
${uiLabelMap.OrderItemsSubTotal} | <@ofbizCurrency amount=orderSubTotal isoCode=currencyUomId/> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
${uiLabelMap.OrderTotalOtherOrderAdjustments} | <@ofbizCurrency amount=otherAdjAmount isoCode=currencyUomId/> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
${uiLabelMap.OrderTotalShippingAndHandling} | <@ofbizCurrency amount=shippingAmount isoCode=currencyUomId/> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
${uiLabelMap.OrderTotalSalesTax} | <@ofbizCurrency amount=taxAmount isoCode=currencyUomId/> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
${uiLabelMap.OrderTotalDue} | <@ofbizCurrency amount=grandTotal isoCode=currencyUomId/> |