Commit c8535687 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

do nothing if the new quantity is more than current quantity.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31459 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5d952d1b
......@@ -62,8 +62,10 @@ class FIFO(DeliverySolver):
"""
"""
result = []
simulation_movement_list = self._getSimulationMovementList()
remaining_quantity = self.getTotalQuantity() - new_quantity
if remaining_quantity < 0:
return result
simulation_movement_list = self._getSimulationMovementList()
for movement in simulation_movement_list:
if remaining_quantity:
quantity = movement.getQuantity()
......
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