Commit 746722dd authored by Fabien Morin's avatar Fabien Morin

- add comment

- cut line to 79 caracters


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27608 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a0826e3f
...@@ -135,7 +135,8 @@ class TradeModelLine(Predicate, XMLMatrix, Amount): ...@@ -135,7 +135,8 @@ class TradeModelLine(Predicate, XMLMatrix, Amount):
tmp_movement_list = [q for q in current_aggregated_amount_list \ tmp_movement_list = [q for q in current_aggregated_amount_list \
if q.getReference() == self.getReference() ] if q.getReference() == self.getReference() ]
if len(tmp_movement_list) > 0: if len(tmp_movement_list) > 0:
tmp_movement_list = tmp_movement_list[:1] tmp_movement_list = tmp_movement_list[:1] # we need a list in case we
# have cells
update = 1 update = 1
else: else:
common_params = { common_params = {
...@@ -230,7 +231,8 @@ class TradeModelLine(Predicate, XMLMatrix, Amount): ...@@ -230,7 +231,8 @@ class TradeModelLine(Predicate, XMLMatrix, Amount):
tmp_movement.setQuantity(model_slice_max-model_slice_min) tmp_movement.setQuantity(model_slice_max-model_slice_min)
if not update and modified: if not update and modified:
# no movements were updated, but something was modified, so new movement appeared # no movements were updated, but something was modified, so new
# movement appeared
aggregated_amount_list.append(tmp_movement) aggregated_amount_list.append(tmp_movement)
return aggregated_amount_list return aggregated_amount_list
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