Commit 627f13a9 authored by Romain Courteaud's avatar Romain Courteaud

Add immediateReindexObject to FakeMovement.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3122 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d8b88fd0
......@@ -467,6 +467,9 @@ class FakeMovement:
"""
for movement in self.__movement_list:
movement._setDeliveryValue(object)
# XXX is delivery_ratio well calculated ?
# movement.getQuantity /
# (sum object.getRelatedSimulationMovement.getQuantity)
movement.setDeliveryRatio(movement.getQuantity() / object.getQuantity())
def getPrice(self):
......@@ -524,6 +527,13 @@ class FakeMovement:
for movement in self.getMovementList():
movement.recursiveReindexObject()
def immediateReindexObject(self):
"""
Reindex immediately all movements
"""
for movement in self.getMovementList():
movement.immediateReindexObject()
def getVariationBaseCategoryList(self):
"""
Return variation base category 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