Commit a4bd858d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix NameError, sorry.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24595 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e3f4cc92
...@@ -207,7 +207,7 @@ class InvoiceTransactionRule(Rule, PredicateMatrix): ...@@ -207,7 +207,7 @@ class InvoiceTransactionRule(Rule, PredicateMatrix):
if dest_currency_url is not None and currency_url != dest_currency_url: if dest_currency_url is not None and currency_url != dest_currency_url:
precision = dest_section.getPriceCurrencyValue().getQuantityPrecision() precision = dest_section.getPriceCurrencyValue().getQuantityPrecision()
dest_exchange_ratio = currency.getPrice(context=new_mvmt.asContext( dest_exchange_ratio = currency.getPrice(context=new_mvmt.asContext(
categories=['price_currency/%s' % dest_currency.getRelativeUrl(), categories=['price_currency/%s' % dest_currency_url,
'resource/%s' % currency_url], 'resource/%s' % currency_url],
start_date=new_mvmt.getStartDate())) start_date=new_mvmt.getStartDate()))
if dest_exchange_ratio is not None: if dest_exchange_ratio is not None:
...@@ -223,7 +223,7 @@ class InvoiceTransactionRule(Rule, PredicateMatrix): ...@@ -223,7 +223,7 @@ class InvoiceTransactionRule(Rule, PredicateMatrix):
if source_currency_url is not None and currency_url != source_currency_url: if source_currency_url is not None and currency_url != source_currency_url:
precision = source_section.getPriceCurrencyValue().getQuantityPrecision() precision = source_section.getPriceCurrencyValue().getQuantityPrecision()
source_exchange_ratio = currency.getPrice(context=new_mvmt.asContext( source_exchange_ratio = currency.getPrice(context=new_mvmt.asContext(
categories=['price_currency/%s' % source_currency.getRelativeUrl(), categories=['price_currency/%s' % source_currency_url,
'resource/%s' % currency_url], 'resource/%s' % currency_url],
start_date=new_mvmt.getStartDate())) start_date=new_mvmt.getStartDate()))
if source_exchange_ratio is not None: if source_exchange_ratio is not None:
......
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