Author: jleroux
Date: Sun Mar 15 12:02:41 2015
New Revision: 1666794
URL: http://svn.apache.org/r1666794
Log:
Patches from Taher Alkhateeb for "party id cannot be specified through GUI
while creating a Party (Person or Party Group)"
https://issues.apache.org/jira/browse/3480 reported by Babu Sreekanth
1. While creating an organization, it is possible to specify a meaningful party
id through ofbiz setup.
2. But, it is NOT possible to specify the party id through GUI while creating a
Party (Person or Party Group). this means, all the parties created get a
sequence id for party id.
If the user inputs a party ID to any of the party creation screens (person,
party group, customer, employee or prospect) then that ID will be used,
otherwise it will pull a party ID from the sequence bank
Modified:
ofbiz/trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml
ofbiz/trunk/applications/party/widget/partymgr/PartyForms.xml
ofbiz/trunk/framework/common/config/CommonUiLabels.xml
Modified:
ofbiz/trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml?rev=1666794&r1=1666793&r2=1666794&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml
(original)
+++ ofbiz/trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml
Sun Mar 15 12:02:41 2015
@@ -124,6 +124,7 @@ under the License.
<!-- Create the Person -->
<call-map-processor in-map-name="parameters"
out-map-name="personContext">
<simple-map-processor name="newPerson">
+ <process field="USER_PARTY_ID"><copy
to-field="partyId"/></process>
<process field="USER_FIRST_NAME"><copy
to-field="firstName"/><not-empty><fail-property resource="PartyUiLabels"
property="PartyFirstNameMissing"/></not-empty></process>
<process field="USER_MIDDLE_NAME"><copy
to-field="middleName"/></process>
<process field="USER_LAST_NAME"><copy
to-field="lastName"/><not-empty><fail-property resource="PartyUiLabels"
property="PartyLastNameMissingError"/></not-empty></process>
Modified: ofbiz/trunk/applications/party/widget/partymgr/PartyForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/PartyForms.xml?rev=1666794&r1=1666793&r2=1666794&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/widget/partymgr/PartyForms.xml (original)
+++ ofbiz/trunk/applications/party/widget/partymgr/PartyForms.xml Sun Mar 15
12:02:41 2015
@@ -26,7 +26,7 @@ under the License.
<alt-target use-when="personInfo==null" target="createPerson"/>
<auto-fields-service service-name="updatePerson"/>
<field use-when="personInfo!=null" name="partyId"
title="${uiLabelMap.PartyPartyId}"
tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field>
- <field use-when="personInfo==null&&partyId==null"
name="partyId" title="${uiLabelMap.PartyPartyId}"><ignored/></field>
+ <field use-when="personInfo==null&&partyId==null"
name="partyId" title="${uiLabelMap.PartyPartyId}"
tooltip="${uiLabelMap.CommonIdGeneratedIfEmpty}"><text/></field>
<field use-when="personInfo==null&&partyId!=null"
name="partyId" title="${uiLabelMap.PartyPartyId}"
tooltip="${uiLabelMap.CommonCannotBeFound}: [${partyId}]"><display
also-hidden="false"/></field>
<field name="firstName" title="${uiLabelMap.PartyFirstName}"
tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text size="40"
maxlength="60"/></field>
<field name="lastName" title="${uiLabelMap.PartyLastName}"
tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text size="40"
maxlength="60"/></field>
@@ -102,7 +102,7 @@ under the License.
<alt-target use-when="partyGroup==null" target="createPartyGroup"/>
<auto-fields-service service-name="updatePartyGroup"/>
<field use-when="partyGroup!=null" name="partyId"
title="${uiLabelMap.PartyPartyId}"
tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field>
- <field use-when="partyGroup==null&&partyId==null"
name="partyId" title="${uiLabelMap.PartyPartyId}"><ignored/></field>
+ <field use-when="partyGroup==null&&partyId==null"
name="partyId" title="${uiLabelMap.PartyPartyId}"
tooltip="${uiLabelMap.CommonIdGeneratedIfEmpty}"><text/></field>
<field use-when="partyGroup==null&&partyId!=null"
name="partyId" title="${uiLabelMap.PartyPartyId}"
tooltip="${uiLabelMap.CommonCannotBeFound}: [${partyId}]"><display
also-hidden="false"/></field>
<field name="groupName" tooltip="${uiLabelMap.CommonRequired}"
widget-style="required"></field>
<field name="partyTypeId"><ignored/></field>
@@ -432,6 +432,7 @@ under the License.
<form name="NewUser" type="single" target="${target}${previousParams}"
focus-field-name="USER_TITLE" header-row-style="header-row"
default-table-style="basic-table">
+ <field name="USER_PARTY_ID" title="${uiLabelMap.PartyPartyId}"
tooltip="${uiLabelMap.CommonIdGeneratedIfEmpty}"><text/></field>
<field name="USE_ADDRESS"><hidden value="${USE_ADDRESS}"/></field>
<field name="require_email"><hidden value="${require_email}"/></field>
<field name="USER_TITLE" title="${uiLabelMap.CommonTitle}"><text
size="10" maxlength="30"/></field>
Modified: ofbiz/trunk/framework/common/config/CommonUiLabels.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/config/CommonUiLabels.xml?rev=1666794&r1=1666793&r2=1666794&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/config/CommonUiLabels.xml (original)
+++ ofbiz/trunk/framework/common/config/CommonUiLabels.xml Sun Mar 15 12:02:41
2015
@@ -5344,6 +5344,10 @@
<value xml:lang="zh-CN">æ è¯</value>
<value xml:lang="zh-TW">èå¥</value>
</property>
+ <property key="CommonIdGeneratedIfEmpty">
+ <value xml:lang="ar">ÙØªÙ
Ø®Ù٠دÙÙÙ ØªØ³ÙØ³Ù٠اذا ترÙ
ÙØ§Ø±ØºØ§</value>
+ <value xml:lang="en">ID sequence will be generated if empty</value>
+ </property>
<property key="CommonIds">
<value xml:lang="ar">Ø¯ÙØ§Ø¦Ù</value>
<value xml:lang="cs">Identifikátory</value>