Commit 0a8e682e authored by Vincent Pelletier's avatar Vincent Pelletier

Do not compute precision: displayed exchange rate is related to selected...

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.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22253 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e19f9922
......@@ -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>
......
......@@ -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>
624
\ No newline at end of file
625
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment