'Simple helper function to get the newly created inv_recv row'

def recv_rec(self, result):

    if (len(result['after']) > 0):
        new_inv_recv = result['after'].records[0]
        return new_inv_recv.inv_recv
    return None
