[Erp5-report] r24595 - /erp5/trunk/products/ERP5/Document/InvoiceTransactionRule.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Nov 14 12:12:00 CET 2008


Author: kazuhiko
Date: Fri Nov 14 12:11:57 2008
New Revision: 24595

URL: http://svn.erp5.org?rev=24595&view=rev
Log:
fix NameError, sorry.

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=24595&r1=24594&r2=24595&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/InvoiceTransactionRule.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/InvoiceTransactionRule.py [utf8] Fri Nov 14 12:11:57 2008
@@ -207,7 +207,7 @@
         if dest_currency_url is not None and currency_url != dest_currency_url:
           precision = dest_section.getPriceCurrencyValue().getQuantityPrecision()
 	  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],
             start_date=new_mvmt.getStartDate()))
 	  if dest_exchange_ratio is not None:
@@ -223,7 +223,7 @@
         if source_currency_url is not None and currency_url != source_currency_url:
           precision = source_section.getPriceCurrencyValue().getQuantityPrecision()
 	  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],
             start_date=new_mvmt.getStartDate()))
           if source_exchange_ratio is not None:




More information about the Erp5-report mailing list