ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r897843 - /ofbiz/trunk/framework/common/widget/CommonScreens.xml
Date Mon, 11 Jan 2010 11:42:45 GMT
Author: erwan
Date: Mon Jan 11 11:42:45 2010
New Revision: 897843

URL: http://svn.apache.org/viewvc?rev=897843&view=rev
Log:
In lookup screens, the default currency wasn't selected, and was always showing the first
of the list

Modified:
    ofbiz/trunk/framework/common/widget/CommonScreens.xml

Modified: ofbiz/trunk/framework/common/widget/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/widget/CommonScreens.xml?rev=897843&r1=897842&r2=897843&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/widget/CommonScreens.xml (original)
+++ ofbiz/trunk/framework/common/widget/CommonScreens.xml Mon Jan 11 11:42:45 2010
@@ -244,7 +244,13 @@
                         </service>
                         <set field="layoutSettings" from-field="themeResources" default-value="${layoutSettings}"
global="true"/>
                         <set field="messagesTemplateLocation" from-field="layoutSettings.VT_MSG_TMPLT_LOC[0]"
default-value="component://common/webcommon/includes/messages.ftl"/>
-                    </actions>    
+                        <property-to-field  field="defaultCurrencyUomId" property="currency.uom.id.default"
resource="general"/>
+                        <set field="defaultOrganizationPartyId" from-field="userPreferences.ORGANIZATION_PARTY"
global="true"/>
+                        <entity-one entity-name="PartyAcctgPrefAndGroup" value-field="orgParty">
+                            <field-map field-name="partyId" from-field="defaultOrganizationPartyId"/>
+                        </entity-one>
+                        <set field="defaultOrganizationPartyCurrencyUomId" from-field="orgParty.baseCurrencyUomId"
default-value="defaultCurrencyUomId" global="true"/>
+                    </actions>
                     <widgets>
                         <platform-specific><html><html-template location="component://common/webcommon/includes/lookup.ftl"/></html></platform-specific>
                         <platform-specific><html><html-template location="${messagesTemplateLocation}"/></html></platform-specific>



Mime
View raw message