svn commit: r558259 - /ofbiz/trunk/specialpurpose/oagis/webapp/oagis/message/ProcessShipment.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r558259 - /ofbiz/trunk/specialpurpose/oagis/webapp/oagis/message/ProcessShipment.ftl

jonesde
Author: jonesde
Date: Fri Jul 20 23:46:13 2007
New Revision: 558259

URL: http://svn.apache.org/viewvc?view=rev&rev=558259
Log:
Small changes to Process Shipment template to get correct name data

Modified:
    ofbiz/trunk/specialpurpose/oagis/webapp/oagis/message/ProcessShipment.ftl

Modified: ofbiz/trunk/specialpurpose/oagis/webapp/oagis/message/ProcessShipment.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/oagis/webapp/oagis/message/ProcessShipment.ftl?view=diff&rev=558259&r1=558258&r2=558259
==============================================================================
--- ofbiz/trunk/specialpurpose/oagis/webapp/oagis/message/ProcessShipment.ftl (original)
+++ ofbiz/trunk/specialpurpose/oagis/webapp/oagis/message/ProcessShipment.ftl Fri Jul 20 23:46:13 2007
@@ -59,7 +59,12 @@
         <of:TRANSMETHD>${orderItemShipGroup.shipmentMethodTypeId?if_exists}</of:TRANSMETHD>
         <os:PARTNER>
           <#if address?has_content>
-            <of:NAME>${address.toName?if_exists}</of:NAME>
+            <#if (partyNameView.firstName)?has_content><#assign partyName = partyNameView.firstName/></#if>
+            <#if (partyNameView.middleName)?has_content><#assign partyName = partyName + " " + partyNameView.middleName/></#if>
+            <#if (partyNameView.lastName)?has_content><#assign partyName = partyName + " " + partyNameView.lastName/></#if>
+
+            <#-- NOTE: this is the to name -->
+            <of:NAME>${address.toName?default(partyName)?if_exists}</of:NAME>
             <of:PARTNRTYPE>SHIPTO</of:PARTNRTYPE>
             <of:CURRENCY>USD</of:CURRENCY>
             <os:ADDRESS>
@@ -76,7 +81,8 @@
               <of:TELEPHONE><#if telecomNumber.countryCode?has_content>${telecomNumber.countryCode}-</#if>${telecomNumber.areaCode?if_exists}-${telecomNumber.contactNumber?if_exists}</of:TELEPHONE>
             </os:ADDRESS>
             <os:CONTACT>
-              <of:NAME>${address.toName?if_exists}</of:NAME>
+              <#-- NOTE: this is the attention name -->
+              <of:NAME>${address.attnName?default(partyName)?if_exists}</of:NAME>
               <of:EMAIL>${emailString?if_exists}</of:EMAIL>
               <of:FAX></of:FAX>
               <of:TELEPHONE><#if telecomNumber.countryCode?has_content>${telecomNumber.countryCode}-</#if>${telecomNumber.areaCode?if_exists}-${telecomNumber.contactNumber?if_exists}</of:TELEPHONE>