def METHOD_NAME(
    self,
    instrument_order_id: int,
    allow_partial_completions=False,
    allow_zero_completions=False,
    treat_inactive_as_complete=False,
):
    # Check children all done
    completely_filled = self.confirm_all_children_and_grandchildren_are_filled(
        instrument_order_id,
        allow_partial_completions=allow_partial_completions,
        allow_zero_completions=allow_zero_completions,
        treat_inactive_as_complete=treat_inactive_as_complete,
    )
    if not completely_filled:
        return None
    # If we have got this far then all our children are filled, and the
    # parent is filled
    # the 'order family' will now include split orders
    order_family = self.get_order_family_for_instrument_order_id(
        instrument_order_id
    )
    # Make orders inactive
    # A subsequent process will delete them
    self.deactivate_family_of_orders(order_family)
    self.add_order_family_to_historic_orders_database(order_family)