<#-- 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 parameters.showAllFacilities?exists> ${uiLabelMap.ProductShowProductFacilities} <#else> ${uiLabelMap.ProductShowAllFacilities}
<#if product?exists>

${uiLabelMap.ProductInventorySummary}

<#if isMarketingPackage == "true"> <#assign rowClass = "2"> <#list quantitySummaryByFacility.values() as quantitySummary> <#if quantitySummary.facilityId?exists> <#assign facilityId = quantitySummary.facilityId> <#assign facility = delegator.findOne("Facility", Static["org.ofbiz.base.util.UtilMisc"].toMap("facilityId", facilityId), false)> <#assign manufacturingInQuantitySummary = manufacturingInQuantitySummaryByFacility.get(facilityId)?if_exists> <#assign manufacturingOutQuantitySummary = manufacturingOutQuantitySummaryByFacility.get(facilityId)?if_exists> <#assign totalQuantityOnHand = quantitySummary.totalQuantityOnHand?if_exists> <#assign totalAvailableToPromise = quantitySummary.totalAvailableToPromise?if_exists> <#assign mktgPkgATP = quantitySummary.mktgPkgATP?if_exists> <#assign mktgPkgQOH = quantitySummary.mktgPkgQOH?if_exists> <#assign incomingShipmentAndItemList = quantitySummary.incomingShipmentAndItemList?if_exists> <#assign incomingProductionRunList = manufacturingInQuantitySummary.incomingProductionRunList?if_exists> <#assign incomingQuantityTotal = manufacturingInQuantitySummary.estimatedQuantityTotal?if_exists> <#assign outgoingProductionRunList = manufacturingOutQuantitySummary.outgoingProductionRunList?if_exists> <#assign outgoingQuantityTotal = manufacturingOutQuantitySummary.estimatedQuantityTotal?if_exists> class="alternate-row"> <#if isMarketingPackage == "true"> <#-- toggle the row color --> <#if rowClass == "2"> <#assign rowClass = "1"> <#else> <#assign rowClass = "2">
${uiLabelMap.ProductFacility} ${uiLabelMap.ProductAtp} ${uiLabelMap.ProductQoh}${uiLabelMap.ProductMarketingPackageATP} ${uiLabelMap.ProductMarketingPackageQOH} ${uiLabelMap.ProductIncomingShipments} ${uiLabelMap.ProductIncomingProductionRuns} ${uiLabelMap.ProductOutgoingProductionRuns}
${(facility.facilityName)?if_exists} [${facilityId?default("[No Facility]")}] ${uiLabelMap.ProductInventoryReceive} <#if totalAvailableToPromise?exists>${totalAvailableToPromise}<#else>  <#if totalQuantityOnHand?exists>${totalQuantityOnHand}<#else> <#if mktgPkgATP?exists>${mktgPkgATP}<#else>  <#if mktgPkgQOH?exists>${mktgPkgQOH}<#else>  <#if incomingShipmentAndItemList?has_content> <#list incomingShipmentAndItemList as incomingShipmentAndItem>
${incomingShipmentAndItem.shipmentId}:${incomingShipmentAndItem.shipmentItemSeqId}-${(incomingShipmentAndItem.estimatedArrivalDate.toString())?if_exists}-<#if incomingShipmentAndItem.quantity?exists>${incomingShipmentAndItem.quantity?string.number}<#else>[${uiLabelMap.ProductQuantityNotSet}]
<#else>
 
<#if incomingProductionRunList?has_content> <#list incomingProductionRunList as incomingProductionRun>
${incomingProductionRun.workEffortId}-${(incomingProductionRun.estimatedCompletionDate.toString())?if_exists}-<#if incomingProductionRun.estimatedQuantity?exists>${incomingProductionRun.estimatedQuantity?string.number}<#else>[${uiLabelMap.ProductQuantityNotSet}]
${uiLabelMap.CommonTotal}: ${incomingQuantityTotal?if_exists}
<#else>
 
<#if outgoingProductionRunList?has_content> <#list outgoingProductionRunList as outgoingProductionRun>
${outgoingProductionRun.workEffortParentId?default("")}:${outgoingProductionRun.workEffortId}-${(outgoingProductionRun.estimatedStartDate.toString())?if_exists}-<#if outgoingProductionRun.estimatedQuantity?exists>${outgoingProductionRun.estimatedQuantity?string.number}<#else>[${uiLabelMap.ProductQuantityNotSet}]
${uiLabelMap.CommonTotal}: ${outgoingQuantityTotal?if_exists}
<#else>
 
<#else>

${uiLabelMap.ProductProductNotFound} ${productId?if_exists}!