SELECT ct.trx_number ,ctl.description ,fnd_flex_ext.get_segs('SQLGL' ,'GL#' ,gcc.chart_of_accounts_id ,gcc.code_combination_id) account_number ,gd.gl_date ,to_number(decode(gd.account_class ,'REC' ,decode()) , ,NULL ,nvl(gd.amount, )) ,decode()) , ,)…