[Erp5-report] r27606 - /erp5/trunk/products/ERP5/Document/TradeModelLine.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jun 16 15:26:44 CEST 2009


Author: luke
Date: Tue Jun 16 15:26:43 2009
New Revision: 27606

URL: http://svn.erp5.org?rev=27606&view=rev
Log:
 - put comment in corresponding block of code

Modified:
    erp5/trunk/products/ERP5/Document/TradeModelLine.py

Modified: erp5/trunk/products/ERP5/Document/TradeModelLine.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/TradeModelLine.py?rev=27606&r1=27605&r2=27606&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TradeModelLine.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/TradeModelLine.py [utf8] Tue Jun 16 15:26:43 2009
@@ -193,11 +193,11 @@
           for movement in movement_list:
             if set(base_application_list)\
                 .intersection(set(movement.getBaseContributionList())):
-              # if the movement have no variation category, it's the same as
-              # if he have all variation categories
               if len(movement.getVariationCategoryList()) == 0 or \
                   set(movement.getVariationCategoryList()).intersection(\
                   set(tmp_movement.getVariationCategoryList())):
+                # if the movement have no variation category, it's the same as
+                # if he have all variation categories
                 quantity = tmp_movement.getQuantity(0.0)
                 modified = 1
                 tmp_movement.setQuantity(quantity + movement.getTotalPrice())




More information about the Erp5-report mailing list