Commit fc2bf8e6 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

digergence list should be stored before adopting some divergences,

otherwise there is no way to get original divergences for quantity.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24589 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 741a6b58
......@@ -235,6 +235,7 @@ class DeliveryBuilder(OrderBuilder):
if not len(divergence_to_accept_list) and \
not len(divergence_to_adopt_list):
return
divergence_list = delivery.getDivergenceList()
# First, we update simulation movements according to
# divergence_to_accept_list.
......@@ -277,7 +278,7 @@ class DeliveryBuilder(OrderBuilder):
# nothing' quanity divergence list because all quantity are already
# calculated in adopt prevision phase.
quantity_dict = {}
for divergence in delivery.getDivergenceList():
for divergence in divergence_list:
if divergence.getProperty('divergence_scope') != 'quantity' or \
divergence in divergence_to_accept_list or \
divergence in divergence_to_adopt_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