Commit e4823099 authored by Łukasz Nowak's avatar Łukasz Nowak

- put comment in corresponding block of code


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27606 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3f8ab009
...@@ -193,11 +193,11 @@ class TradeModelLine(Predicate, XMLMatrix, Amount): ...@@ -193,11 +193,11 @@ class TradeModelLine(Predicate, XMLMatrix, Amount):
for movement in movement_list: for movement in movement_list:
if set(base_application_list)\ if set(base_application_list)\
.intersection(set(movement.getBaseContributionList())): .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 \ if len(movement.getVariationCategoryList()) == 0 or \
set(movement.getVariationCategoryList()).intersection(\ set(movement.getVariationCategoryList()).intersection(\
set(tmp_movement.getVariationCategoryList())): 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) quantity = tmp_movement.getQuantity(0.0)
modified = 1 modified = 1
tmp_movement.setQuantity(quantity + movement.getTotalPrice()) tmp_movement.setQuantity(quantity + movement.getTotalPrice())
......
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