svn commit: r482753 - in /incubator/ofbiz/trunk/applications/order: webapp/ordermgr/quote/QuoteForms.xml widget/ordermgr/QuoteScreens.xml

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

svn commit: r482753 - in /incubator/ofbiz/trunk/applications/order: webapp/ordermgr/quote/QuoteForms.xml widget/ordermgr/QuoteScreens.xml

sichen
Author: sichen
Date: Tue Dec  5 12:08:28 2006
New Revision: 482753

URL: http://svn.apache.org/viewvc?view=rev&rev=482753
Log:
put in a default currency for the create quote form based on user configured default

Modified:
    incubator/ofbiz/trunk/applications/order/webapp/ordermgr/quote/QuoteForms.xml
    incubator/ofbiz/trunk/applications/order/widget/ordermgr/QuoteScreens.xml

Modified: incubator/ofbiz/trunk/applications/order/webapp/ordermgr/quote/QuoteForms.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/order/webapp/ordermgr/quote/QuoteForms.xml?view=diff&rev=482753&r1=482752&r2=482753
==============================================================================
--- incubator/ofbiz/trunk/applications/order/webapp/ordermgr/quote/QuoteForms.xml (original)
+++ incubator/ofbiz/trunk/applications/order/webapp/ordermgr/quote/QuoteForms.xml Tue Dec  5 12:08:28 2006
@@ -132,7 +132,7 @@
             </drop-down>
         </field>
         <field name="currencyUomId" title="${uiLabelMap.CommonCurrency}">
-            <drop-down allow-empty="true">
+            <drop-down allow-empty="true" no-current-selected-key="${defaultCurrencyUomId}">
                 <entity-options description="${uomId} - ${description}" entity-name="Uom" key-field-name="uomId">
                     <entity-constraint name="uomTypeId" operator="equals" value="CURRENCY_MEASURE"/>
                     <entity-order-by field-name="uomId"/>

Modified: incubator/ofbiz/trunk/applications/order/widget/ordermgr/QuoteScreens.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/order/widget/ordermgr/QuoteScreens.xml?view=diff&rev=482753&r1=482752&r2=482753
==============================================================================
--- incubator/ofbiz/trunk/applications/order/widget/ordermgr/QuoteScreens.xml (original)
+++ incubator/ofbiz/trunk/applications/order/widget/ordermgr/QuoteScreens.xml Tue Dec  5 12:08:28 2006
@@ -189,6 +189,8 @@
                 
                 <set field="quoteId" from-field="parameters.quoteId"/>
                 <entity-one entity-name="Quote" value-name="quote"/>
+                
+                <property-to-field field="defaultCurrencyUomId" resource="general" property="currency.uom.id.default" default="USD"/>
             </actions>
             <widgets>
                 <decorator-screen name="CommonQuoteDecorator" location="${parameters.mainDecoratorLocation}">