Commit 9f74e105 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix typos in the last commit that cause AttributeError.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24591 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4976fcdc
...@@ -205,7 +205,7 @@ class InvoiceTransactionRule(Rule, PredicateMatrix): ...@@ -205,7 +205,7 @@ class InvoiceTransactionRule(Rule, PredicateMatrix):
else: else:
dest_currency_url = None dest_currency_url = None
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.getPriceCurrency().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.getRelativeUrl(),
'resource/%s' % currency_url], 'resource/%s' % currency_url],
...@@ -221,7 +221,7 @@ class InvoiceTransactionRule(Rule, PredicateMatrix): ...@@ -221,7 +221,7 @@ class InvoiceTransactionRule(Rule, PredicateMatrix):
else: else:
source_currency_url = None source_currency_url = None
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.getPriceCurrency().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.getRelativeUrl(),
'resource/%s' % currency_url], 'resource/%s' % currency_url],
......
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