[Erp5-report] r22253 - in /erp5/trunk/bt5/erp5_banking_cash: SkinTemplateItem/portal_skins/...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jul 3 15:25:57 CEST 2008
Author: vincent
Date: Thu Jul 3 15:25:50 2008
New Revision: 22253
URL: http://svn.erp5.org?rev=22253&view=rev
Log:
Do not compute precision: displayed exchange rate is related to selected currency, so there is no point in doning any rounding to the value to display.
Also, unify the way exchange rate is computed.
Modified:
erp5/trunk/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/CashToCurrencyPurchase_view/your_exchange_rate.xml
erp5/trunk/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/CashToCurrencySale_view/your_exchange_rate.xml
erp5/trunk/bt5/erp5_banking_cash/bt/revision
Modified: erp5/trunk/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/CashToCurrencyPurchase_view/your_exchange_rate.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/CashToCurrencyPurchase_view/your_exchange_rate.xml?rev=22253&r1=22252&r2=22253&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/CashToCurrencyPurchase_view/your_exchange_rate.xml (original)
+++ erp5/trunk/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/CashToCurrencyPurchase_view/your_exchange_rate.xml Thu Jul 3 15:25:50 2008
@@ -157,9 +157,7 @@
</item>
<item>
<key> <string>precision</string> </key>
- <value>
- <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
- </value>
+ <value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
@@ -230,7 +228,7 @@
</item>
<item>
<key> <string>precision</string> </key>
- <value> <int>0</int> </value>
+ <value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
@@ -261,23 +259,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
- <value> <string>python: here.CurrencyExchange_getExchangeRateList()[0]</string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
- <record id="3" aka="AAAAAAAAAAM=">
- <pickle>
- <tuple>
- <global name="TALESMethod" module="Products.Formulator.TALESField"/>
- <tuple/>
- </tuple>
- </pickle>
- <pickle>
- <dictionary>
- <item>
- <key> <string>_text</string> </key>
- <value> <string>python: here.getResourceValue().getQuantityPrecision()</string> </value>
+ <value> <string>python: here.CurrencyExchange_getExchangeRateList(from_currency=here.getResource(), to_currency=\'currency_module/%s\' % (here.Baobab_getPortalReferenceCurrencyID()), currency_exchange_type=\'purchase\', start_date=here.getStartDate())[0]</string> </value>
</item>
</dictionary>
</pickle>
Modified: erp5/trunk/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/CashToCurrencySale_view/your_exchange_rate.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/CashToCurrencySale_view/your_exchange_rate.xml?rev=22253&r1=22252&r2=22253&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/CashToCurrencySale_view/your_exchange_rate.xml (original)
+++ erp5/trunk/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/CashToCurrencySale_view/your_exchange_rate.xml Thu Jul 3 15:25:50 2008
@@ -157,9 +157,7 @@
</item>
<item>
<key> <string>precision</string> </key>
- <value>
- <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
- </value>
+ <value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
@@ -230,7 +228,7 @@
</item>
<item>
<key> <string>precision</string> </key>
- <value> <int>0</int> </value>
+ <value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
@@ -266,20 +264,4 @@
</dictionary>
</pickle>
</record>
- <record id="3" aka="AAAAAAAAAAM=">
- <pickle>
- <tuple>
- <global name="TALESMethod" module="Products.Formulator.TALESField"/>
- <tuple/>
- </tuple>
- </pickle>
- <pickle>
- <dictionary>
- <item>
- <key> <string>_text</string> </key>
- <value> <string>python: here.getResourceValue().getQuantityPrecision()</string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
</ZopeData>
Modified: erp5/trunk/bt5/erp5_banking_cash/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/bt/revision?rev=22253&r1=22252&r2=22253&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/bt/revision (original)
+++ erp5/trunk/bt5/erp5_banking_cash/bt/revision Thu Jul 3 15:25:50 2008
@@ -1,1 +1,1 @@
-624
+625
More information about the Erp5-report
mailing list