(explanation, trade_phase)
Returns True if all business link with given trade_phase
    applicable to given explanation are completed.

    explanation -- an Order, Order Line, Delivery or Delivery Line or
                   Applied Rule which implicitely defines a simulation subtree

    trade_phase -- a Trade Phase category
Returns True if all business link with given trade_phase
    applicable to given explanation are completed.
Returns True if all business link with given trade_phase applicable to given explanation are completed .
def isTradePhaseCompleted(explanation, trade_phase):
    """Returns True if all business link with given trade_phase
    applicable to given explanation are completed.

    explanation -- an Order, Order Line, Delivery or Delivery Line or
                   Applied Rule which implicitely defines a simulation subtree

    trade_phase -- a Trade Phase category
    """
def isTradePhaseCompleted ( explanation , trade_phase ) :