Commit 940c70ff authored by Sebastien Robin's avatar Sebastien Robin

check the state of the currency exchange line, it must be valid

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14565 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eaba8962
......@@ -110,12 +110,14 @@ if to_currency is not None:\n
object = temp_object\n
mapped_value = context.portal_domains.generateMappedValue(object, \n
has_cell_content=0, \n
validation_state=\'validated\',\n
sort_method=sort_by_date)\n
base_price = getattr(mapped_value, \'base_price\', None)\n
discount = getattr(mapped_value, \'discount\', None)\n
if base_price is None and discount is None:\n
mapped_value = context.portal_domains.generateMappedValue(object, \n
has_cell_content=1, \n
validation_state=\'validated\',\n
sort_method=sort_by_date)\n
base_price = getattr(mapped_value, \'base_price\', None)\n
discount = getattr(mapped_value, \'discount\', None)\n
......
115
\ No newline at end of file
116
\ 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