Commit 8fbc5d20 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

now aggregation is done in applied rule level.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31479 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9e316e67
...@@ -129,7 +129,7 @@ class NewOrderRule(Rule): ...@@ -129,7 +129,7 @@ class NewOrderRule(Rule):
return (movement.getSource() is None or movement.getDestination() is None) return (movement.getSource() is None or movement.getDestination() is None)
class OrderRuleMovementGenerator(object): class OrderRuleMovementGenerator(object):
def getAggregatedMovementList(self, context, movement_list=None, def getGeneratedMovementList(self, context, movement_list=None,
rounding=False): rounding=False):
""" """
Input movement list comes from order Input movement list comes from order
......
...@@ -66,7 +66,7 @@ class MovementCollectionUpdaterMixin: ...@@ -66,7 +66,7 @@ class MovementCollectionUpdaterMixin:
""" """
# We suppose here that we have an IMovementCollection in hand # We suppose here that we have an IMovementCollection in hand
decision_movement_list = context.getMovementList() decision_movement_list = context.getMovementList()
prevision_movement_list = movement_generator.getAggregatedMovementList( prevision_movement_list = movement_generator.getGeneratedMovementList(
self._getMovementGeneratorContext(context), self._getMovementGeneratorContext(context),
movement_list=self._getMovementGeneratorMovementList(), rounding=rounding) movement_list=self._getMovementGeneratorMovementList(), rounding=rounding)
......
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