Commit c37abe40 authored by Aurel's avatar Aurel

check the computed default exchange rate


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44629 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e02bfc41
......@@ -161,6 +161,13 @@ class TestERP5BankingCashToCurrencySale(TestERP5BankingMixin):
self.assertEqual(cash_to_currency_sale.getDestination(), None)
self.setDocumentSourceReference(cash_to_currency_sale)
self.stepTic()
# Check the default exchange rate
rate = cash_to_currency_sale.CurrencyExchange_getExchangeRateList(from_currency=cash_to_currency_sale.getResource(),
to_currency='currency_module/%s' % (cash_to_currency_sale.Baobab_getPortalReferenceCurrencyID()),
currency_exchange_type='sale',
start_date=cash_to_currency_sale.getStartDate())[0]
self.assertEqual(rate, 650.0)
def stepCreateValidIncomingLine(self, sequence=None, sequence_list=None,
**kwd):
......
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