<#-- 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 shipment?exists>

<#assign alt_row = false> <#list shipmentItemDatas as shipmentItemData> <#assign shipmentItem = shipmentItemData.shipmentItem> <#assign itemIssuances = shipmentItemData.itemIssuances> <#assign orderShipments = shipmentItemData.orderShipments> <#assign shipmentPackageContents = shipmentItemData.shipmentPackageContents> <#assign product = shipmentItemData.product?if_exists> <#assign totalQuantityPackaged = shipmentItemData.totalQuantityPackaged> <#assign totalQuantityToPackage = shipmentItemData.totalQuantityToPackage> class="alternate-row"> <#list orderShipments as orderShipment> class="alternate-row"> <#list itemIssuances as itemIssuance> class="alternate-row"> <#list shipmentPackageContents as shipmentPackageContent> class="alternate-row"> <#if shipmentPackageContent.subProductId?has_content> <#else> <#if (totalQuantityToPackage > 0)> class="alternate-row"> <#-- toggle the row color --> <#assign alt_row = !alt_row>
${uiLabelMap.ProductItem}     ${uiLabelMap.ProductQuantity}      
${shipmentItem.shipmentItemSeqId} ${(product.internalName)?if_exists} ${shipmentItem.productId?if_exists} ${shipmentItem.quantity?default(" ")} ${shipmentItem.shipmentContentDescription?default(" ")} ${uiLabelMap.CommonDelete}
  ${uiLabelMap.ProductOrderItem} ${orderShipment.orderId?if_exists} ${orderShipment.orderItemSeqId?if_exists}   ${orderShipment.quantity?if_exists}      <#-- don't allow a delete, need to implement a cancel issuance ${uiLabelMap.CommonDelete} -->
  ${uiLabelMap.ProductOrderItem} ${itemIssuance.orderId?if_exists} ${itemIssuance.orderItemSeqId?if_exists} ${uiLabelMap.ProductInventory} ${itemIssuance.inventoryItemId?if_exists} ${itemIssuance.quantity?if_exists} ${itemIssuance.issuedDateTime?if_exists} ${uiLabelMap.ProductFuturePartyRoleList}  <#-- don't allow a delete, need to implement a cancel issuance ${uiLabelMap.CommonDelete} -->
  ${uiLabelMap.ProductPackage} ${shipmentPackageContent.shipmentPackageSeqId} ${shipmentPackageContent.quantity?if_exists} ${uiLabelMap.ProductSubProduct} ${shipmentPackageContent.subProductId} ${shipmentPackageContent.subProductQuantity?if_exists}  ${uiLabelMap.CommonDelete}
 
${uiLabelMap.ProductAddToPackage}
   
${uiLabelMap.ProductNewItem} ${uiLabelMap.ProductProductId} <@htmlTemplate.lookupField formName="createShipmentItemForm" name="productId" id="productId" fieldFormName="LookupProduct"/> ${uiLabelMap.ProductProductDescription} ${uiLabelMap.CommonCreate}
<#else>