Commit 79815f0d authored by Vincent Pelletier's avatar Vincent Pelletier

If there is no destination bank account (can happen if an accounting account...

If there is no destination bank account (can happen if an accounting account is selected instead) use site default currency.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22623 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bb16e47d
......@@ -165,7 +165,9 @@
</item>
<item>
<key> <string>precision</string> </key>
<value> <string></string> </value>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>required</string> </key>
......@@ -259,11 +261,8 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -275,4 +274,20 @@
</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: int(((here.getBaobabDestinationPaymentValue() is None) and (here.Baobab_getPortalReferenceCurrencyValue().getQuantityPrecision(), ) or (here.getBaobabDestinationPaymentValue().getPriceCurrencyValue().getQuantityPrecision(), ))[0])</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -303,7 +303,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: int(here.getBaobabDestinationPaymentValue().getPriceCurrencyValue().getQuantityPrecision())</string> </value>
<value> <string>python: int(((here.getBaobabDestinationPaymentValue() is None) and (here.Baobab_getPortalReferenceCurrencyValue().getQuantityPrecision(), ) or (here.getBaobabDestinationPaymentValue().getPriceCurrencyValue().getQuantityPrecision(), ))[0])</string> </value>
</item>
</dictionary>
</pickle>
......
403
\ No newline at end of file
404
\ 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