Commit 147c1fd2 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

remove needless code.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30442 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f737f0ea
...@@ -63,9 +63,6 @@ class FIFO(DeliverySolver): ...@@ -63,9 +63,6 @@ class FIFO(DeliverySolver):
""" """
result = [] result = []
simulation_movement_list = self._getSimulationMovementList() simulation_movement_list = self._getSimulationMovementList()
if len(simulation_movement_list):
simulation_movement_list.sort(
key=lambda x:x.getExplainationValue().getStartDate(), reverse=True)
remaining_quantity = self.getTotalQuantity() - new_quantity remaining_quantity = self.getTotalQuantity() - new_quantity
for movement in simulation_movement_list: for movement in simulation_movement_list:
if remaining_quantity: if remaining_quantity:
......
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