Commit b3529b5f authored by Aurel's avatar Aurel

create exchange line from euro to dollar and remove base price on it


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13781 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c8630963
......@@ -317,12 +317,27 @@ class TestERP5BankingMixin:
currency_exchange_type_list=['currency_exchange_type/sale',
'currency_exchange_type/purchase',
'currency_exchange_type/transfer'],
base_price=2)
)
cell_list = exchange_line.objectValues()
self.assertEquals(len(cell_list),3)
for cell in cell_list:
cell.setBasePrice(650.0)
cell.setDiscount(650.0)
elif id == "EUR":
# Create an exchange line
exchange_line = currency.newContent(portal_type='Currency Exchange Line',
start_date='01/01/1900',stop_date='01/01/2900',
price_currency='currency_module/USD',
currency_exchange_type_list=['currency_exchange_type/sale',
'currency_exchange_type/purchase',
'currency_exchange_type/transfer'],
)
cell_list = exchange_line.objectValues()
self.assertEquals(len(cell_list),3)
for cell in cell_list:
cell.setBasePrice(1./650.0)
cell.setDiscount(1./650.0)
return currency
......
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