check_tr_trdtc_visit_ordinal_error function

Check that all TR dates by INV are duplicated or earlier than last visit's (possible date entry error)