<#-- 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. --> <#-- xsi:schemaLocation="http://www.openapplications.org/197_receive_delivery_001 file:///C:/Documents%20and%20Settings/022523/My%20Documents/Vudu/XML%20Specs/OAG%20721/197_receive_delivery_001.xsd" --> RECEIVE DELIVERY 001 ${logicalId} INVENTORY RMA ${referenceId?if_exists} 1 ENG NONE ${authId} ${sentDate?if_exists} ${entryDate?if_exists} ${returnId?if_exists} RMA <#if postalAddress?has_content> <#if (partyNameView.firstName)?has_content><#assign partyName = partyNameView.firstName/> <#if (partyNameView.middleName)?has_content><#assign partyName = partyName + " " + partyNameView.middleName/> <#if (partyNameView.lastName)?has_content><#assign partyName = partyName + " " + partyNameView.lastName/> ${postalAddress.toName?default(partyName)?if_exists?xml} SHIPFROM USD ${postalAddress.address1?if_exists?xml} <#if postalAddress.address2?has_content> ${postalAddress.address2?if_exists?xml} ${postalAddress.city?if_exists?xml} ${postalAddress.countryGeoId?if_exists} <#-- --> ${postalAddress.postalCode?if_exists?xml} ${postalAddress.stateProvinceGeoId?if_exists} <#if telecomNumber.countryCode?has_content>${telecomNumber.countryCode?xml}-${telecomNumber.areaCode?if_exists?xml}-${telecomNumber.contactNumber?if_exists?xml} ${postalAddress.attnName?default(partyName)?if_exists?xml} ${emailString?if_exists?xml} <#-- --> <#if telecomNumber.countryCode?has_content>${telecomNumber.countryCode?xml}-${telecomNumber.areaCode?if_exists?xml}-${telecomNumber.contactNumber?if_exists?xml} ${totalQty?if_exists} 0 + EACH <#list returnItems as returnItem> <#assign returnReason = returnItem.getRelatedOne("ReturnReason")/> <#assign serialNumberList = serialNumberListByReturnItemSeqIdMap.get(returnItem.returnItemSeqId)?if_exists/> ${returnItem.returnQuantity?if_exists} 0 + EACH ${returnItem.productId?if_exists} ${returnReason.description?if_exists?xml} RMA ${returnItem.returnId} ${returnItem.returnItemSeqId} <#list serialNumberList?if_exists as serialNumber> ${serialNumber?xml}