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

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jan 8 18:06:01 CET 2009


Author: jerome
Date: Thu Jan  8 18:05:58 2009
New Revision: 25062

URL: http://svn.erp5.org?rev=25062&view=rev
Log:
indent with spaces instead of tabs

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=25062&r1=25061&r2=25062&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/InvoiceTransactionRule.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/InvoiceTransactionRule.py [utf8] Thu Jan  8 18:05:58 2009
@@ -206,11 +206,11 @@
           dest_currency_url = None
         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(
+          dest_exchange_ratio = currency.getPrice(context=new_mvmt.asContext(
             categories=['price_currency/%s' % dest_currency_url,
                         'resource/%s' % currency_url],
             start_date=new_mvmt.getStartDate()))
-	  if dest_exchange_ratio is not None:
+          if dest_exchange_ratio is not None:
             new_mvmt.edit(destination_total_asset_price=round(
              (dest_exchange_ratio*
               applied_rule.getParentValue().getTotalPrice()),precision))
@@ -222,7 +222,7 @@
           source_currency_url = None
         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(
+          source_exchange_ratio = currency.getPrice(context=new_mvmt.asContext(
             categories=['price_currency/%s' % source_currency_url,
                         'resource/%s' % currency_url],
             start_date=new_mvmt.getStartDate()))
@@ -230,7 +230,7 @@
             new_mvmt.setSourceTotalAssetPrice(round(
        (source_exchange_ratio*applied_rule.getParentValue().getTotalPrice()),
             precision))
-	
+      
     # Pass to base class
     Rule.expand(self, applied_rule, force=force, **kw)
   




More information about the Erp5-report mailing list