|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622 。
您需要 登录 才可以下载或查看,没有帐号?注册
x
接收交易产生的子分类帐信息SQL如下:
select rrsl.RCV_TRANSACTION_ID "接收交易ID",
rrsl.CURRENCY_CODE "币别",
rrsl.ACTUAL_FLAG "结余类型",
decode(rrsl.ACTUAL_FLAG,'A','ACTUAL','B','BUDGET','E','ENCUMBRANCE') "结余类型",
rrsl.JE_SOURCE_NAME "日记账分录来源名代码",
gjsv.user_JE_SOURCE_NAME "日记账分录来源名",
rrsl.JE_CATEGORY_NAME "日记账分录类别代码",
gjcv.user_JE_CATEGORY_NAME "日记账分录类别",
rrsl.SET_OF_BOOKS_ID "账簿ID",
gl.name "账簿名称",
gl.description "账簿描述",
rrsl.ACCOUNTING_DATE "会计日期",
rrsl.CODE_COMBINATION_ID "会计科目ID",
fnd_flex_ext.get_segs('SQLGL',
'GL#',
gcc.chart_of_accounts_id,
gcc.CODE_COMBINATION_ID)
"科目组合",
gl_flexfields_pkg.Get_Concat_Description(gcc.chart_of_accounts_id,
--select g.chart_of_accounts_id,g.* from gl_sets_of_books g
gcc.CODE_COMBINATION_ID ----select CODE_COMBINATION_ID from gl_code_combinations
)
"科目组合描述",
rrsl.ACCOUNTED_DR "借方金额",
rrsl.ACCOUNTED_CR "贷方金额",
rrsl.ENCUMBRANCE_TYPE_ID "分摊类型ID",
rrsl.ENTERED_DR "输入借方金额",
rrsl.ENTERED_CR "输入贷方金额",
rrsl.BUDGET_VERSION_ID "预算版本ID",
rrsl.CURRENCY_CONVERSION_DATE "汇率日期",
rrsl.USER_CURRENCY_CONVERSION_TYPE "汇率类型",
rrsl.CURRENCY_CONVERSION_RATE "汇率",
rrsl.TRANSACTION_DATE "交易日期",
rrsl.PERIOD_NAME "期间名称",
rrsl.CHART_OF_ACCOUNTS_ID "COA的ID",
gl_flexfields_pkg.get_account_segment(rrsl.chart_of_accounts_id)
"科目段",
gl_flexfields_pkg.get_coa_name(rrsl.chart_of_accounts_id)
"科目名称",
rrsl.FUNCTIONAL_CURRENCY_CODE "功能币",
rrsl.DATE_CREATED_IN_GL "有效GL日期",
rrsl.JE_BATCH_NAME "日记分录批名",
rrsl.JE_BATCH_DESCRIPTION "日记分录批描述",
rrsl.JE_HEADER_NAME "日记账头名",
rrsl.JE_LINE_DESCRIPTION "日记账行描述",
rrsl.REVERSE_JOURNAL_FLAG "日记还原标志",
rrsl.REVERSAL_PERIOD_NAME "还原期间名",
rrsl.ATTRIBUTE_CATEGORY ,
rrsl.ATTRIBUTE1 ,
rrsl.ATTRIBUTE2 ,
rrsl.ATTRIBUTE3 ,
rrsl.ATTRIBUTE4 ,
rrsl.ATTRIBUTE5 ,
rrsl.ATTRIBUTE6 ,
rrsl.ATTRIBUTE7 ,
rrsl.ATTRIBUTE8 ,
rrsl.ATTRIBUTE9 ,
rrsl.ATTRIBUTE10 ,
rrsl.ATTRIBUTE11 ,
rrsl.ATTRIBUTE12 ,
rrsl.ATTRIBUTE13 ,
rrsl.ATTRIBUTE14 ,
rrsl.ATTRIBUTE15 ,
rrsl.REQUEST_ID ,
rrsl.PROGRAM_APPLICATION_ID ,
rrsl.PROGRAM_ID ,
rrsl.PROGRAM_UPDATE_DATE ,
rrsl.SUBLEDGER_DOC_SEQUENCE_ID "子分类帐文档序列号",
rrsl.SUBLEDGER_DOC_SEQUENCE_VALUE "子分类帐文档序列值",
rrsl.USSGL_TRANSACTION_CODE "交易代码呢",
rrsl.REFERENCE1 "来源",
rrsl.REFERENCE2 "头ID",
rrsl.REFERENCE3 "行ID",
rrsl.REFERENCE4 "单号",
rrsl.REFERENCE5 ,
rrsl.REFERENCE6 ,
rrsl.REFERENCE7 ,
rrsl.REFERENCE8 ,
rrsl.REFERENCE9 ,
rrsl.REFERENCE10 ,
rrsl.SOURCE_DOC_QUANTITY "来源文档数量",
rrsl.ACCRUAL_METHOD_FLAG "债权发生制方法标志",
rrsl.GL_SL_LINK_ID "连接总账ID",
rrsl.ENTERED_REC_TAX "输入可恢复税",
rrsl.ENTERED_NR_TAX "输入不可恢复税",
rrsl.ACCOUNTED_REC_TAX "应计可恢复税",
rrsl.ACCOUNTED_NR_TAX "应计不可恢复税",
rrsl.RCV_SUB_LEDGER_ID "接收子帐ID",--主键ID
rrsl.ACCOUNTING_EVENT_ID "会计事件ID",
rrsl.ACCOUNTING_LINE_TYPE "会计行类型",
rrsl.PA_ADDITION_FLAG "项目会计标志",
rrsl.LAST_UPDATE_DATE ,
rrsl.LAST_UPDATED_BY ,
rrsl.CREATION_DATE ,
rrsl.CREATED_BY ,
rrsl.LAST_UPDATE_LOGIN
GL_JE_SOURCES_TL
from RCV_RECEIVING_SUB_LEDGER rrsl,
GL_JE_SOURCES_VL gjsv,
GL_JE_CATEGORIES_VL gjcv,
gl_ledgers gl,
gl_code_combinations gcc
where 1 = 1
and gjsv.je_source_name = rrsl.JE_SOURCE_NAME
and gjcv.JE_CATEGORY_NAME = rrsl.JE_CATEGORY_NAME
and gl.ledger_id = rrsl.SET_OF_BOOKS_ID
and gcc.CODE_COMBINATION_ID = rrsl.CODE_COMBINATION_ID
and rrsl.ACCOUNTING_EVENT_ID = 432243
|
|