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 ...
随机推荐
- Gen类的字符串操作
public void t(String d){ final String str = "b"; String s = "a"+"c"+st ...
- 高可用Hadoop平台-实战
1.概述 今天继续<高可用的Hadoop平台>系列,今天开始进行小规模的实战下,前面的准备工作完成后,基本用于统计数据的平台都拥有了,关于导出统计结果的文章留到后面赘述.今天要和大家分享的 ...
- k8s一点
1.kubectl get secret -n kube-system|grep admin-token kubernetes-dashboard-admin-token-9q757 2.kubec ...
- zoj 1151 Word Reversal(字符串操作模拟)
题目连接: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1151 题目描述: For each list of words ...
- jQuery获取动态产生的html内标签或元素
下午分享<MVC编辑状态两个DropDownList联动>http://www.cnblogs.com/insus/p/3426563.html 不久,马上有网友问及三级联动的例子.Ins ...
- 访问 .obj文件,由于扩展配置问题而无法提供您请求的页面。如果该页面是脚本,请添加处理程序。如果应下载文件,请添加 MIME 映射
一.错误描述 HTTP 错误 404.3 - Not Found 由于扩展配置问题而无法提供您请求的页面.如果该页面是脚本,请添加处理程序.如果应下载文件,请添加 MIME 映射. 最可能的原因: 可 ...
- Asp.Net WebForm生命周期的详解
一.Asp.Net页面生命周期的概念 当我们在浏览器地址栏中输入网址,回车查看页面时,这时会向服务器端IIS)发送一个request请求,服务器就会判断发送过来的请求页面,当完全识别 TTP页面处理程 ...
- 微软宣布.NET开发环境将开源 支持三大操作系统(windows,Mac OS X和Linux)(转)
微软周三(11月12日)公布了.NET开发框架开源计划.公司拟将这长期以来只能运行于Windows系统下的开发环境,通过GitHub开源,以实现跨平台支持Mac OS X和Linux.根据微软公布的计 ...
- 无法将类型“System.Collections.Generic.List<anonymous type:string ClassID,string ClsssName>”隐式转换为“System.Collections.Generic.List<Ecology.Model.EnergyFlowGraph>”
无法将类型“System.Collections.Generic.List<anonymous type:string ClassID,string ClsssName>”隐式转换为“Sy ...
- 【Java并发编程】8、各种锁的概念
持续更新中... 共享锁(S锁):如果事务T对数据A加上共享锁后,则其他事务只能对A再加共享锁,不能加排他锁,直到已释放所有共享锁.获准共享锁的事务只能读数据,不能修改数据. 排他锁(X锁):如果事务 ...