• Julien Muchembled's avatar
    Fix Trade Model Solver that wrongly skipped some TM related simulation movements · a96fa2a8
    Julien Muchembled authored
    This fixes a regression in recent commit 6e758ade
    
    The following line:
    
      simulation_movement_list = delivery_dict.get(movement) or \
        movement.getDeliveryRelatedValueList()
    
    didn't work because the loop that fills delivery_dict does not necessarily
    find all related simulation movements for every key.
    
    New code is a little complicated because it tries to not call
    getDeliveryRelatedValueList() when 'movement' is not related to trade model.
    a96fa2a8
TradeModelSolver.py 6.41 KB