<#-- 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> <#-- It is important to set defaults for facilityLocation and facilityLocationInfo in case the picklisted item has no location defined in facility. Because these defaults are scalars, we must then use the ?is_hash check directive as well before trying to access them --> <#macro pickInfoDetail pickQuantity picklistBinInfoList product facilityLocation="" facilityLocationInfo=""> <#if (facilityLocation?has_content) && (facilityLocation?is_hash)> ${facilityLocation.areaId?if_exists}-${facilityLocation.aisleId?if_exists}-${facilityLocation.sectionId?if_exists}-${facilityLocation.levelId?if_exists}-${facilityLocation.positionId?if_exists} <#else> [${uiLabelMap.ProductNoLocation}] <#if product?has_content> ${product.internalName?default("Internal Name Not Set!")} [${product.productId}] <#else> <#if (facilityLocationInfo?has_content) && (facilityLocationInfo?is_hash) && (facilityLocationInfo.message)?has_content> ${facilityLocationInfo.message?if_exists} ${pickQuantity} <#list picklistBinInfoList as picklistBinInfo> ${picklistBinInfo.quantity} ${uiLabelMap.CommonTo} #${picklistBinInfo.picklistBin.binLocationNumber} <#list picklistBinInfoList as picklistBinInfo> ${picklistBinInfo.picklistBin.primaryOrderId?if_exists} <#-- toggle the row color --> <#if rowColor == "white"> <#assign rowColor = "#D4D0C8"> <#else> <#assign rowColor = "white"> <#macro picklistItemInfoDetail picklistItemInfo product facilityLocation> <#local picklistItem = picklistItemInfo.picklistItem> <#local orderItem = picklistItemInfo.orderItem> <#if facilityLocation?has_content> ${facilityLocation.areaId?if_exists}-${facilityLocation.aisleId?if_exists}-${facilityLocation.sectionId?if_exists}-${facilityLocation.levelId?if_exists}-${facilityLocation.positionId?if_exists} <#else> [${uiLabelMap.ProductNoLocation}] <#if product?has_content> ${product.internalName?default("Internal Name Not Set!")} [${product.productId}] <#else> ${picklistItem.quantity} ${orderItemShipGrpInvRes.orderId}:${orderItem.orderItemSeqId} ${picklistItemInfo.inventoryItemAndLocation.inventoryItemId}<#if picklistItemInfo.inventoryItemAndLocation.binNumber?exists>:${picklistItemInfo.inventoryItemAndLocation.binNumber} <#-- toggle the row color --> <#if rowColor == "white"> <#assign rowColor = "#D4D0C8"> <#else> <#assign rowColor = "white"> <#if security.hasEntityPermission("FACILITY", "_VIEW", session)> <#if picklistInfo?has_content> ${uiLabelMap.ProductPickList} ${picklistInfo.picklist.picklistId} ${uiLabelMap.CommonIn} ${uiLabelMap.ProductFacility} ${picklistInfo.facility.facilityName} [${picklistInfo.facility.facilityId}] <#if picklistInfo.shipmentMethodType?has_content> ${uiLabelMap.CommonFor} ${uiLabelMap.ProductShipmentMethodType} ${picklistInfo.shipmentMethodType.description?default(picklistInfo.shipmentMethodType.shipmentMethodTypeId)} ${uiLabelMap.ProductLocation} ${uiLabelMap.ProductProductId} ${uiLabelMap.ProductToPick} ${uiLabelMap.ProductQuantityToBin} ${uiLabelMap.CommonNbr} ${uiLabelMap.ProductOrderId} <#-- Not display details here, just the summary info for the bins ${uiLabelMap.ProductOrderItems} ${uiLabelMap.ProductInventoryItems} --> <#-- 2. facilityLocationInfoList (facilityLocation, product, pickQuantity, picklistBinInfoList (picklistBin, quantity), picklistItemInfoList (picklistItem, picklistBin, orderItem, product, inventoryItemAndLocation, orderItemShipGrpInvRes, itemIssuanceList)) 3. noLocationProductInfoList (product, pickQuantity, picklistBinInfoList (picklistBin, quantity), picklistItemInfoList (picklistItem, picklistBin, orderItem, product, inventoryItemAndLocation, orderItemShipGrpInvRes, itemIssuanceList)) --> <#if facilityLocationInfoList?has_content || noLocationProductInfoList?has_content> <#assign rowColor = "white"> <#if facilityLocationInfoList?has_content> <#list facilityLocationInfoList as facilityLocationInfo> <@pickInfoDetail pickQuantity=facilityLocationInfo.pickQuantity picklistBinInfoList=facilityLocationInfo.picklistBinInfoList product=facilityLocationInfo.product facilityLocation=facilityLocationInfo.facilityLocation facilityLocationInfo=facilityLocationInfo/> <#-- Not display details here, just the summary info for the bins <#list facilityLocationInfo.picklistItemInfoList as picklistItemInfo> <@picklistItemInfoDetail picklistItemInfo=picklistItemInfo product=picklistItemInfo.product facilityLocation=facilityLocationInfo.facilityLocation/> --> <#if noLocationProductInfoList?has_content> <#list noLocationProductInfoList as noLocationProductInfo> <@pickInfoDetail pickQuantity=noLocationProductInfo.pickQuantity picklistBinInfoList=noLocationProductInfo.picklistBinInfoList product=noLocationProductInfo.product facilityLocation=null facilityLocationInfo=null/> <#-- Not display details here, just the summary info for the bins <#list noLocationProductInfo.picklistItemInfoList as picklistItemInfo> <@picklistItemInfoDetail picklistItemInfo=picklistItemInfo product=noLocationProductInfo.product facilityLocation=null/> --> <#else> ${uiLabelMap.ProductNoInventoryFoundToPick}. <#if picklistInfo?has_content> <#list picklistInfo.picklistBinInfoList as picklistBinInfo> <#assign rowColor = "white"> <#assign picklistBin = picklistBinInfo.picklistBin> <#assign picklistItemInfoList = picklistBinInfo.picklistItemInfoList?if_exists> 8mm ${uiLabelMap.ProductBinNumber} ${picklistBin.binLocationNumber} ${uiLabelMap.ProductToPack}, ${uiLabelMap.ProductOrderId}: ${picklistBinInfo.primaryOrderHeader.orderId}, ${uiLabelMap.ProductOrderShipGroupId}: ${picklistBinInfo.primaryOrderItemShipGroup.shipGroupSeqId} ${uiLabelMap.ProductOrderItem} ${uiLabelMap.ProductProductId} ${uiLabelMap.ProductToPack} ${uiLabelMap.ProductInventoryItem} ${uiLabelMap.ProductInventoryAvail} ${uiLabelMap.ProductInventoryNotAvail} <#list picklistItemInfoList as picklistItemInfo> <#assign picklistItem = picklistItemInfo.picklistItem> <#assign orderItem = picklistItemInfo.orderItem> <#assign product = picklistItemInfo.product> <#assign picklistItemProduct = picklistItemInfo.inventoryItemAndLocation.getRelatedOne("InventoryItem").getRelatedOne("Product")> <#assign orderItemShipGrpInvRes = picklistItemInfo.orderItemShipGrpInvRes?if_exists> <#--${picklistItem.orderId}:${picklistItem.shipGroupSeqId}:-->${picklistItem.orderItemSeqId} <#if product?has_content> ${product.internalName?default("Internal Name Not Set!")} [${product.productId}] <#if picklistItemProduct?has_content && product?has_content && picklistItemProduct.productId != product.productId> ${picklistItemProduct.internalName?default("Internal Name Not Set!")} [${picklistItemProduct.productId}] ${picklistItem.quantity} <#if orderItemShipGrpInvRes?has_content> <#assign quantityAvailable = orderItemShipGrpInvRes.quantity?default(0) - orderItemShipGrpInvRes.quantityNotAvailable?default(0)> ${orderItemShipGrpInvRes.inventoryItemId} ${quantityAvailable} ${orderItemShipGrpInvRes.quantityNotAvailable?default(0)} <#else> ${uiLabelMap.ProductNoInventoryReservation} <#-- toggle the row color --> <#if rowColor == "white"> <#assign rowColor = "#D4D0C8"> <#else> <#assign rowColor = "white"> <#if picklistBinInfo.primaryOrderItemShipGroup.giftMessage?has_content> ${uiLabelMap.OrderGiftMessage} ${picklistBinInfo.primaryOrderItemShipGroup.giftMessage} <#else> ${uiLabelMap.ProductFacilityViewPermissionError}