11iGL信息

SELECT gjh.je_header_id
,gjh.name NAME --日记帐名称
,gjh.je_category je_category --类别
,gjc.user_je_category_name --中文类别
,gjh.je_source je_source --来源
,gjs.user_je_source_name --中文来源
--conversion_type
,gjh.currency_conversion_type
,gdc.user_conversion_type
/* ,gjh.period_name --gl_je_headers 的期间
,gjh.currency_code --币种*/
--gsb
,gsb.set_of_books_id
,gsb.short_name --账套名
--gjb
--,gjb.default_period_name --GL_BALANCES的期间
--gcc
,gjl.code_combination_id
,gcc.segment1 || '.' || gcc.segment2 || '.' || gcc.segment3 || '.' || gcc.segment4 || '.' || gcc.segment5 || '.' || gcc.segment6 || '.' || gcc.segment7 account --账户
,gcc.segment1
,gcc.segment2
,gcc.segment3
,gcc.segment4
,gcc.segment5
,gcc.segment6
,gcc.segment7
/* ,apps.xla_oa_functions_pkg.get_ccid_description(gcc.chart_of_accounts_id
,gjl.code_combination_id) acct_desc --账户说明*/
--gjl
,gjl.je_line_num --日记账行号
,gjl.entered_dr entered_dr --日记账行 借项
,gjl.entered_cr entered_cr --日记账行 贷项
--,gjl.description description


FROM gl.gl_je_headers gjh
,gl.gl_je_lines gjl
--,gl.gl_je_batches gjb
,gl.gl_code_combinations gcc
,gl_sets_of_books gsb
,gl_je_categories gjc -- 凭证分类
,gl_je_sources gjs --凭证来源
,gl_daily_conversion_types gdc
WHERE 1 = 1
AND gjh.je_header_id = 69278 --970--1434286
AND gjl.je_header_id = gjh.je_header_id
--AND gjh.je_batch_id = gjb.je_batch_id
AND gjl.code_combination_id = gcc.code_combination_id(+)
AND gjh.set_of_books_id = gsb.set_of_books_id
AND gjc.je_category_name = gjh.je_category
AND gjs.je_source_name = gjh.je_source
AND gdc.conversion_type = gjh.currency_conversion_type;


猜你喜欢

转载自blog.csdn.net/f_zhangyu/article/details/80969401