<#-- 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 shipmentRouteSegmentDatas as shipmentRouteSegmentData> <#assign shipmentRouteSegment = shipmentRouteSegmentData.shipmentRouteSegment> <#assign shipmentPackageRouteSegs = shipmentRouteSegmentData.shipmentPackageRouteSegs?if_exists> <#assign originFacility = shipmentRouteSegmentData.originFacility?if_exists> <#assign destFacility = shipmentRouteSegmentData.destFacility?if_exists> <#assign shipmentMethodType = shipmentRouteSegmentData.shipmentMethodType?if_exists> <#assign carrierPerson = shipmentRouteSegmentData.carrierPerson?if_exists> <#assign carrierPartyGroup = shipmentRouteSegmentData.carrierPartyGroup?if_exists> <#assign originPostalAddress = shipmentRouteSegmentData.originPostalAddress?if_exists> <#assign destPostalAddress = shipmentRouteSegmentData.destPostalAddress?if_exists> <#assign originTelecomNumber = shipmentRouteSegmentData.originTelecomNumber?if_exists> <#assign destTelecomNumber = shipmentRouteSegmentData.destTelecomNumber?if_exists> <#assign carrierServiceStatusItem = shipmentRouteSegmentData.carrierServiceStatusItem?if_exists> <#assign currencyUom = shipmentRouteSegmentData.currencyUom?if_exists> <#assign billingWeightUom = shipmentRouteSegmentData.billingWeightUom?if_exists> <#assign carrierServiceStatusValidChangeToDetails = shipmentRouteSegmentData.carrierServiceStatusValidChangeToDetails?if_exists> class="alternate-row"> <#list shipmentPackageRouteSegs as shipmentPackageRouteSeg> class="alternate-row"> <#-- --> <#-- toggle the row color --> <#assign alt_row = !alt_row>
${uiLabelMap.ProductSegment}
${uiLabelMap.ProductCarrierShipmentMethod}
${uiLabelMap.ProductOriginDestinationFacility}
${uiLabelMap.ProductOriginDestinationAddressId}
${uiLabelMap.ProductOriginDestinationPhoneId}
${uiLabelMap.ProductShipmentThirdPartyAccountNumber}
${uiLabelMap.ProductShipmentThirdPartyPostalCode}
${uiLabelMap.ProductShipmentThirdPartyCountryCode}
${uiLabelMap.ProductShipmentFedexHomeDeliveryTypeDate}
${uiLabelMap.ProductCarrierStatus}
${uiLabelMap.ProductTrackingNumber}
${uiLabelMap.ProductEstimatedStartArrive}
${uiLabelMap.ProductActualStartArrive}
${uiLabelMap.ProductBillingWeightUom}
${uiLabelMap.ProductCurrencyUom}
${uiLabelMap.ProductActualTransport}
${uiLabelMap.ProductActualServices}
${uiLabelMap.ProductActualOther}
${uiLabelMap.ProductActualTotal}


<#if originPostalAddress?has_content>${uiLabelMap.CommonTo}: ${originPostalAddress.toName?if_exists}, ${uiLabelMap.CommonAttn}: ${originPostalAddress.attnName?if_exists}, ${originPostalAddress.address1?if_exists}, ${originPostalAddress.address2?if_exists}, ${originPostalAddress.city?if_exists}, ${originPostalAddress.stateProvinceGeoId?if_exists}, ${originPostalAddress.postalCode?if_exists}, ${originPostalAddress.countryGeoId?if_exists}
<#if destPostalAddress?has_content>${uiLabelMap.CommonTo}: ${destPostalAddress.toName?if_exists},${uiLabelMap.CommonAttn}: ${destPostalAddress.attnName?if_exists}, ${destPostalAddress.address1?if_exists}, ${destPostalAddress.address2?if_exists}, ${destPostalAddress.city?if_exists}, ${destPostalAddress.stateProvinceGeoId?if_exists}, ${destPostalAddress.postalCode?if_exists}, ${destPostalAddress.countryGeoId?if_exists}
<#if originTelecomNumber?has_content>${originTelecomNumber.countryCode?if_exists} ${originTelecomNumber.areaCode?if_exists} ${originTelecomNumber.contactNumber?if_exists}
<#if destTelecomNumber?has_content>${destTelecomNumber.countryCode?if_exists} ${destTelecomNumber.areaCode?if_exists} ${destTelecomNumber.contactNumber?if_exists}
<#if "UPS" == shipmentRouteSegment.carrierPartyId?if_exists> <#if !shipmentRouteSegment.carrierServiceStatusId?has_content || "SHRSCS_NOT_STARTED" == shipmentRouteSegment.carrierServiceStatusId?if_exists> ${uiLabelMap.ProductConfirmShipmentUps}
${uiLabelMap.ProductShipmentUpsResidential}: <#elseif "SHRSCS_CONFIRMED" == shipmentRouteSegment.carrierServiceStatusId?if_exists> ${uiLabelMap.ProductAcceptUpsShipmentConfirmation}
${uiLabelMap.ProductVoidUpsShipmentConfirmation} <#elseif "SHRSCS_ACCEPTED" == shipmentRouteSegment.carrierServiceStatusId?if_exists> ${uiLabelMap.ProductTrackUpsShipment}
${uiLabelMap.ProductVoidUpsShipment} <#if "DHL" == shipmentRouteSegment.carrierPartyId?if_exists> <#if !shipmentRouteSegment.carrierServiceStatusId?has_content || "SHRSCS_NOT_STARTED" == shipmentRouteSegment.carrierServiceStatusId?if_exists> ${uiLabelMap.ProductConfirmShipmentDHL} <#if "FEDEX" == shipmentRouteSegment.carrierPartyId?if_exists> <#if !shipmentRouteSegment.carrierServiceStatusId?has_content || "SHRSCS_NOT_STARTED" == shipmentRouteSegment.carrierServiceStatusId?if_exists> ${uiLabelMap.ProductConfirmShipmentFedex}
<#if shipmentMethodType?exists && shipmentMethodType.shipmentMethodTypeId=="GROUND_HOME"> <@htmlTemplate.renderDateTimeField name="homeDeliveryDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${(shipmentRouteSegment.homeDeliveryDate.toString())?if_exists}" size="25" maxlength="30" id="homeDeliveryDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> <#else> <#-- Todo: implement closeout with Fedex --> <#-- Todo: implement shipment cancellation with Fedex --> <#-- Todo: implement shipment tracking with Fedex --> ${shipmentRouteSegment.homeDeliveryType?default(uiLabelMap.ProductShipmentNone)} <#if shipmentRouteSegment.homeDeliveryDate?exists>  (${shipmentRouteSegment.homeDeliveryDate?string("yyyy-MM-dd")})



<@htmlTemplate.renderDateTimeField name="estimatedStartDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${(shipmentRouteSegment.estimatedStartDate.toString())?if_exists}" size="25" maxlength="30" id="estimatedStartDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> <@htmlTemplate.renderDateTimeField name="estimatedArrivalDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${(shipmentRouteSegment.estimatedArrivalDate.toString())?if_exists}" size="25" maxlength="30" id="estimatedArrivalDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
<@htmlTemplate.renderDateTimeField name="actualStartDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${(shipmentRouteSegment.actualStartDate.toString())?if_exists}" size="25" maxlength="30" id="actualStartDate2" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> <@htmlTemplate.renderDateTimeField name="actualArrivalDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${(shipmentRouteSegment.actualArrivalDate.toString())?if_exists}" size="25" maxlength="30" id="actualArrivalDate2" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>





 
${uiLabelMap.ProductPackage} ${shipmentPackageRouteSeg.shipmentPackageSeqId} <#if shipmentPackageRouteSeg.labelImage?exists> ${uiLabelMap.ProductViewLabelImage} ${uiLabelMap.ProductTrack} ${uiLabelMap.CommonNbr}
${uiLabelMap.ProductBox} ${uiLabelMap.CommonNbr}
 
${uiLabelMap.ProductAddPackageInfo} :
Track#: Box#: ${uiLabelMap.CommonAdd}  

${uiLabelMap.ProductNewSegment}
${uiLabelMap.CommonCreate}





<@htmlTemplate.renderDateTimeField name="estimatedStartDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="estimatedStartDate3" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> <@htmlTemplate.renderDateTimeField name="estimatedArrivalDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="estimatedArrivalDate3" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
<@htmlTemplate.renderDateTimeField name="actualStartDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="actualArrivalDate3" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> <@htmlTemplate.renderDateTimeField name="actualArrivalDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="actualArrivalDate3" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>





<#else>