Oracle EBS AR 收款取数
-- 收款核销,贷项通知单核销也是通过ar_receivable_applications_all表
SELECT cr.receipt_number
,ad.amount_dr
,ad.amount_cr
,ad.source_table
,ad.source_type
,xla_oa_functions_pkg.get_ccid_description(gcc.chart_of_accounts_id
,ad.code_combination_id)
,ad.creation_date
FROM ar_distributions_all ad
,ar_receivable_applications_all ra
,ar_cash_receipts_all cr
,gl_code_combinations gcc
WHERE ad.source_table = 'RA'
AND ad.source_id = ra.receivable_application_id
AND ra.cash_receipt_id = cr.cash_receipt_id
AND gcc.code_combination_id = ad.code_combination_id
-- 收款记录
UNION ALL
SELECT cr.receipt_number
,ad.amount_dr
,ad.amount_cr
,ad.source_table
,ad.source_type
,xla_oa_functions_pkg.get_ccid_description(gcc.chart_of_accounts_id
,ad.code_combination_id)
,ad.creation_date
FROM ar_distributions_all ad
,ar_cash_receipt_history_all crh
,ar_cash_receipts_all cr
,gl_code_combinations gcc
WHERE ad.source_table = 'CRH'
AND ad.source_id = crh.cash_receipt_history_id
AND crh.cash_receipt_id = cr.cash_receipt_id
AND gcc.code_combination_id = ad.code_combination_id
ORDER BY creation_date;
--杂项收款
SELECT cr.receipt_number,cr.cash_receipt_id
,ad.amount_dr
,ad.amount_cr
,ad.source_table
,ad.source_type
,xla_oa_functions_pkg.get_ccid_description(gcc.chart_of_accounts_id
,ad.code_combination_id)
,ad.creation_date
FROM ar_distributions_all ad
,ar_misc_cash_distributions_all mcd
,ar_cash_receipts_all cr
,gl_code_combinations gcc
WHERE ad.source_table = 'MCD'
AND ad.source_id = mcd.misc_cash_distribution_id
AND mcd.cash_receipt_id = cr.cash_receipt_id
AND gcc.code_combination_id = ad.code_combination_id;
--应收总账日记账分录
SELECT h.je_source
,h.je_category
,fnd_flex_ext.get_segs('SQLGL', 'GL#', gcc.chart_of_accounts_id, l.code_combination_id) acct
,xla_oa_functions_pkg.get_ccid_description(gcc.chart_of_accounts_id
,l.code_combination_id) acct_descr
,l.entered_dr
,l.entered_cr
FROM gl_je_headers h
,gl_je_lines l
,gl_code_combinations gcc
,gl_period_statuses gps
WHERE h.je_header_id = l.je_header_id
AND l.code_combination_id = gcc.code_combination_id
AND h.je_source = 'Receivables'
AND l.period_name = gps.period_name;
Oracle EBS AR 收款取数的更多相关文章
- Oracle EBS AR 收款取值
select hr.name, a.autoapply_flag, a.AUTOMATCH_SET_ID, a.LEGAL_ENTITY_ID, a.RECEIPT_NUMBER, a.type, a ...
- Oracle EBS AR 客户取数SQL
SELECT acct.cust_account_id, acct.party_id, acct.account_number, party.party_name, lkp1.meaning part ...
- Oracle EBS AR 收款核销行关联到事务处理
select ra.trx_number from ar_cash_receipts_all cr, ar_receivable_applications_all ar,ra_customer_trx ...
- Oracle EBS AR 收款API收款方法标识无效
1.确认是不是没有收款方法 methods那个表的问题2.查看收款方法那个LOV的问题3.界面录入 是否会有问题 碰到的问题是 收款日期比较早时 找不到对应的收款方法 银行账户需要重新设置
- Oracle EBS AR 收款调整取值
SELECT ct.trx_number ,adj.adjustment_number ,ad.amount_dr ,ad.amount_cr ,ad.source_table ,ad.source_ ...
- Oracle EBS AR 冲销收款
DECLARE L_CR_ID NUMBER; L_ATTRIBUTE_REC AR_RECEIPT_API_PUB.ATTRIBUTE_REC_TYPE; L_GLOBAL_ATT_REC AR_R ...
- Oracle EBS AR 贷项通知单核销取值
SELECT cm.trx_number ,fnd_flex_ext.get_segs('SQLGL', 'GL#', gcc.chart_of_accounts_id, ad.code_combin ...
- Oracle EBS AR应收核销取值
AR_RECEIVABLE_APPLICATIONS APP, AR_CASH_RECEIPTS CR, AR_PAYMENT_SCHEDULES PS_INV, HZ_CUST_ACCOUNTS C ...
- Oracle EBS AR 其他API
DECLARE L_CR_ID NUMBER; L_ATTRIBUTE_REC AR_RECEIPT_API_PUB.ATTRIBUTE_REC_TYPE; L_GLOBAL_ATT_REC AR_R ...
随机推荐
- js获取上一个兄弟元素
需要用到的两个属性:previousSbiling和previousElementSibling previousSibling:获取元素的上一个兄弟节点:(既包含元素节点.文本节点.注释节点) pr ...
- Hibernate的执行流程和集合的映射关系
Hibernate的执行流程 集合映射 准被hibernate的运行环境 配置hibernate.cfg.xml主配置文件 1.Set集合 写User.java类 package com.gqx.co ...
- BVH with SAH (Bounding Volume Hierarchy with Surface Area Heuristic)
- BVH with SAH (Bounding Volume Hierarchy with Surface Area Heuristic) - 0. Overview 包围层次盒(B ...
- 获取当前iframe动态加载文档的href
Insus.NET想实现一个功能,一个旧的站点A,它有两个网页logon.aspx和Default.aspx(登录成功能访问).由于某些原因,需另建一个新站点B,这个新站点B也有两个网页B_Index ...
- Sql Server 开窗函数Over()的使用
利用over(),将统计信息计算出来,然后直接筛选结果集 declare @t table( ProductID int, ProductName ), ProductType ), Price in ...
- WPF命令(Command)介绍、命令和数据绑定集成应用
要开始使用命令,必须做三件事: 一:定义一个命令 二:定义命令的实现 三:为命令创建一个触发器 WPF中命令系统的基础是一个相对简单的ICommand的接口,代码如下: public interfac ...
- node.js遇到的问题
1.cann't find module 'request' 不能找到’request' 模块 解决方法:找到项目的根路径,cd到该路径,运行命令 npm install request 2.no ...
- oracle 备份数据库,导出数据库
导出数据库 exp hljslfh2/hljslfh@dbsvr file=d:\hljslfh2Of0426.dmp 导入数据库 imp hljslfh2/hljslfh@localhost/dbs ...
- Linux常用基本命令(tail )
tail命令 作用:从文件的尾部查看,跟head命令作用相反,参数也差不多,默认显示后面10行 格式: tail [option] [file] -n : 显示行数 -c<字节数> gho ...
- 华中农业大学第五届程序设计大赛网络同步赛-L
L.Happiness Chicken brother is very happy today, because he attained N pieces of biscuits whose tast ...