'Simple helper function to get the waybill reference of the newly
created inv_send row so it can be used to filter dataTables'

def send_get_ref(self, result):

    if (len(result['after']) > 0):
        new_inv_send = result['after'].records[0]
        return new_inv_send.inv_send.send_ref
    return None
