svn commit: r466023 - /incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml

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

svn commit: r466023 - /incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml

jleroux@apache.org
Author: jleroux
Date: Fri Oct 20 00:41:31 2006
New Revision: 466023

URL: http://svn.apache.org/viewvc?view=rev&rev=466023
Log:
Forgot some tabs in revision 466022  

Modified:
    incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml

Modified: incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml?view=diff&rev=466023&r1=466022&r2=466023
==============================================================================
--- incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml (original)
+++ incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml Fri Oct 20 00:41:31 2006
@@ -80,15 +80,10 @@
         </entity-and>
         <entity-one entity-name="Person" value-name="person"/>
         <entity-one entity-name="PartyGroup" value-name="partyGroup"/>
- <if-empty field-name="parameters.compareDate">
-            <now-timestamp-to-env env-name="nowTimestamp"/>
- <set field="parameters.compareDate" from-field="nowTimestamp"/>
- </if-empty>
-        <!-- fill compare date with todays date if not provided -->
         <if-empty field-name="parameters.compareDate">
-            <now-timestamp-to-env env-name="parameters.compareDate"/>
+            <now-timestamp-to-env env-name="nowTimestamp"/>
+            <set field="parameters.compareDate" from-field="nowTimestamp"/>
         </if-empty>
-        
         <!-- go through the list which is sorted by most recent first and find the oldest (last) one with the changeDate greater than the compareDate -->        
         <iterate entry-name="partyNameHistory" list-name="partyNameHistoryList">
             <if-compare-field field-name="partyNameHistory.changeDate" operator="greater" to-field-name="parameters.compareDate">
@@ -100,14 +95,14 @@
             <if-not-empty field-name="person">
                 <field-to-result field-name="person.firstName" result-name="firstName"/>
                 <if-not-empty field-name="person.middleName">
-                <field-to-result field-name="person.middleName" result-name="middleName"/>
+                    <field-to-result field-name="person.middleName" result-name="middleName"/>
                 </if-not-empty>
                 <field-to-result field-name="person.lastName" result-name="lastName"/>
                 <if-not-empty field-name="person.personalTitle">
-                <field-to-result field-name="person.personalTitle" result-name="personalTitle"/>
+                    <field-to-result field-name="person.personalTitle" result-name="personalTitle"/>
                 </if-not-empty>
                 <if-not-empty field-name="person.suffix">
-                <field-to-result field-name="person.suffix" result-name="suffix"/>
+                    <field-to-result field-name="person.suffix" result-name="suffix"/>
                 </if-not-empty>
 
 
@@ -131,16 +126,16 @@
                 <if-not-empty field-name="person">
                     <field-to-result field-name="partyNameHistoryCurrent.firstName" result-name="firstName"/>
                     <if-not-empty field-name="partyNameHistoryCurrent.middleName">
-                    <field-to-result field-name="partyNameHistoryCurrent.middleName" result-name="middleName"/>
+                        <field-to-result field-name="partyNameHistoryCurrent.middleName" result-name="middleName"/>
                     </if-not-empty>
                     <field-to-result field-name="partyNameHistoryCurrent.lastName" result-name="lastName"/>
                     <if-not-empty field-name="partyNameHistoryCurrent.personalTitle">
-                    <field-to-result field-name="partyNameHistoryCurrent.personalTitle" result-name="personalTitle"/>
+                        <field-to-result field-name="partyNameHistoryCurrent.personalTitle" result-name="personalTitle"/>
                     </if-not-empty>
                     <if-not-empty field-name="partyNameHistoryCurrent.suffix">
-                    <field-to-result field-name="partyNameHistoryCurrent.suffix" result-name="suffix"/>
+                        <field-to-result field-name="partyNameHistoryCurrent.suffix" result-name="suffix"/>
                     </if-not-empty>
-                    
+
                     
                     <if-compare field-name="parameters.lastNameFirst" operator="equals" value="Y">
                         <set field="fullName" value="${partyNameHistoryCurrent.personalTitle} ${partyNameHistoryCurrent.lastName}, ${partyNameHistoryCurrent.firstName} ${partyNameHistoryCurrent.middleName} ${partyNameHistoryCurrent.suffix}"/>