svn commit: r1306745 - in /ofbiz/trunk/applications/party: script/org/ofbiz/party/party/PartyServices.xml servicedef/services.xml

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

svn commit: r1306745 - in /ofbiz/trunk/applications/party: script/org/ofbiz/party/party/PartyServices.xml servicedef/services.xml

sascharodekamp
Author: sascharodekamp
Date: Thu Mar 29 07:57:22 2012
New Revision: 1306745

URL: http://svn.apache.org/viewvc?rev=1306745&view=rev
Log:
If his/her gender is editable by a customer, the service "getPartyNameForDate" should include it if available (https://issues.apache.org/jira/browse/OFBIZ-3483). A patch from Seabastian Leitner: The service "getPartyNameForDate" returns the name and some personal data for a person for a specific date. If a person is able to edit its gender, I think it would be nice, if the service would also return the gender as an optional output-parameter, if it's available.
IMHO this makes sense, if you use the gender to find out the salutation.

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

Modified: ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml?rev=1306745&r1=1306744&r2=1306745&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml (original)
+++ ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml Thu Mar 29 07:57:22 2012
@@ -117,6 +117,9 @@ under the License.
                 <if-not-empty field="person.personalTitle">
                     <field-to-result field="person.personalTitle" result-name="personalTitle"/>
                 </if-not-empty>
+                <if-not-empty field="person.gender">
+                    <field-to-result field="person.gender" result-name="gender"/>
+                </if-not-empty>
                 <if-not-empty field="person.suffix">
                     <field-to-result field="person.suffix" result-name="suffix"/>
                 </if-not-empty>
@@ -151,6 +154,9 @@ under the License.
                     <if-not-empty field="partyNameHistoryCurrent.suffix">
                         <field-to-result field="partyNameHistoryCurrent.suffix" result-name="suffix"/>
                     </if-not-empty>
+                    <if-not-empty field="partyNameHistoryCurrent.gender">
+                        <field-to-result field="partyNameHistoryCurrent.gender" result-name="gender"/>
+                    </if-not-empty>
 
 
                     <if-compare field="parameters.lastNameFirst" operator="equals" value="Y">

Modified: ofbiz/trunk/applications/party/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/servicedef/services.xml?rev=1306745&r1=1306744&r2=1306745&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/servicedef/services.xml (original)
+++ ofbiz/trunk/applications/party/servicedef/services.xml Thu Mar 29 07:57:22 2012
@@ -160,6 +160,7 @@ under the License.
         <attribute name="personalTitle" type="String" mode="OUT" optional="true"/>
         <attribute name="suffix" type="String" mode="OUT" optional="true"/>
         <attribute name="fullName" type="String" mode="OUT" optional="true"/>
+        <attribute name="gender" type="String" mode="OUT" optional="true" />
     </service>
 
     <service name="createAffiliate" engine="java"