[Erp5-report] r24591 - /erp5/trunk/products/ERP5/Document/InvoiceTransactionRule.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Nov 14 11:02:27 CET 2008
Author: kazuhiko
Date: Fri Nov 14 11:02:25 2008
New Revision: 24591
URL: http://svn.erp5.org?rev=24591&view=rev
Log:
fix typos in the last commit that cause AttributeError.
Modified:
erp5/trunk/products/ERP5/Document/InvoiceTransactionRule.py
Modified: erp5/trunk/products/ERP5/Document/InvoiceTransactionRule.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/InvoiceTransactionRule.py?rev=24591&r1=24590&r2=24591&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/InvoiceTransactionRule.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/InvoiceTransactionRule.py [utf8] Fri Nov 14 11:02:25 2008
@@ -205,7 +205,7 @@
else:
dest_currency_url = None
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(
categories=['price_currency/%s' % dest_currency.getRelativeUrl(),
'resource/%s' % currency_url],
@@ -221,7 +221,7 @@
else:
source_currency_url = None
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(
categories=['price_currency/%s' % source_currency.getRelativeUrl(),
'resource/%s' % currency_url],
More information about the Erp5-report
mailing list