[Erp5-dev] CurrencyExchange_getExchangeRateList - is it usable?
Łukasz Nowak
lukasz.nowak at ventis.com.pl
Mon Feb 5 14:36:10 CET 2007
Hello,
As you can read in Message-Id: <200702051132.37265.jerome at nexedi.com> I
was advised to make my own automagic script for Source Conversion. To
obtain it I'll have to use
portal_skins/erp5_base/CurrencyExchange_getExchangeRateList, to fetch
well price for currency.
Well, I was testing this script. In this script there was used
'start_date' but in
portal_workflow/currency_exchange_line_interaction_workflow/scripts/CurrencyExchangeLine_updateMatrix
there is:
c.setCriterion('stop_date', min=context.getStartDate(), \
max=context.getStopDate())
if I change it to start_date like:
c.setCriterion('start_date', min=context.getStartDate(), \
max=context.getStopDate())
I'm getting exchange rates for my currencies.
Well, some questions:
* is it a bug, which makes
portal_skins/erp5_base/CurrencyExchange_getExchangeRateList unusable?
* what shall be changed? criterion setter on
portal_workflow/currency_exchange_line_interaction_workflow/scripts/CurrencyExchangeLine_updateMatrix
from stop_date to start_date or
portal_skins/erp5_base/CurrencyExchange_getExchangeRateList?
* shall be portal_skins/erp5_base/CurrencyExchange_getExchangeRateList
used to calculate conversion of currencies?
Thanks,
Luke
--
Łukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...''
More information about the Erp5-dev
mailing list