2187: and rt.organization_id = mta.organization_id)))))
2188: --BUG#12660014: Do not upgrade AX entities -
2189: -- AX team has been provided with a script to do the upgrade of XLA entities for AX avents
2190: and not exists (SELECT NULL 2191: FROM ax_events ae 2192: WHERE ae.application_id = 401
2193: AND ae.translation_status IN ('T','W')
2194: AND ae.event_type <> 'INV_EVENT_OPW'
2195: AND ae.set_of_books_id = xud.ledger_id