--核銷
SELECT hou.NAME org_name,
rct.trx_number,
rct.trx_date,
hca.account_number customer,
hpt.party_name customer_name,
'ARD' source_table,
ard.line_id source_id,
ard.source_type,
ara.code_combination_id,
gcc_ori.code_combination_id orig_ccid,
gcc_ori.concatenated_segments orig_acct,
ard.amount_dr entered_dr,
ard.amount_cr entered_cr,
(SELECT gcc_new.code_combination_id
FROM gl_code_combinations_kfv gcc_new
WHERE gcc_new.segment1 = gcc_ori.segment1
AND gcc_new.segment2 = gcc_ori.segment2
AND gcc_new.segment3 = gcc_ori.segment3
AND gcc_new.segment4 = (CASE
WHEN ard.source_type IN ('REC', 'UNAPP') THEN
gcc_rec.segment4
END)
AND gcc_new.segment5 = gcc_ori.segment5
AND gcc_new.chart_of_accounts_id = gcc_ori.chart_of_accounts_id) new_ccid,
(CASE
WHEN ard.source_type IN ('REC', 'UNAPP') THEN
gcc_ori.segment1 || '.' || gcc_ori.segment2 || '.' ||
gcc_ori.segment3 || '.' || gcc_rec.segment4 || '.' ||
gcc_ori.segment5
END) new_acct,
gcc_rec.segment4 rec_acc,
gcc_rev.segment4 rev_acc
FROM ra_customer_trx_all rct,
hr_operating_units hou,
hz_cust_accounts hca,
hz_parties hpt,
hz_cust_site_uses_all csu,
gl_code_combinations_kfv gcc_rec,
gl_code_combinations_kfv gcc_rev,
ar_receivable_applications_all ara,
ar_distributions_all ard,
gl_code_combinations_kfv gcc_ori
WHERE rct.org_id = hou.organization_id
AND rct.bill_to_customer_id = hca.cust_account_id
AND hca.party_id = hpt.party_id
AND rct.bill_to_site_use_id = csu.site_use_id
AND csu.gl_id_rec = gcc_rec.code_combination_id(+)
AND csu.gl_id_rev = gcc_rev.code_combination_id(+)
AND ara.customer_trx_id = rct.customer_trx_id
AND ara.application_type = 'CM'
AND ard.source_table = 'RA'
AND ard.source_id = ara.receivable_application_id
AND ard.code_combination_id = gcc_ori.code_combination_id
AND hpt.party_name = 'xxxxxx'
【OracleEBS】AR 核銷
相關文章
- 【OracleEBS】 科目餘額SQLOracleSQL
- 【OracleEBS】 在PL/SQL中呼叫Oracle ERP請求OracleSQL
- 【OracleEBS】 訂單暫掛問題sql解決OracleSQL
- AR.Form、AR.ComboboxORM
- 核函式 多項式核函式 高斯核函式(常用)函式
- Vuforia - AR初探
- Dealing with Scale in AR
- Snapchat收購以色列AR創企,進軍AR購物?
- 構築立體世界,AR Engine助力B站會員購打造沉浸式營銷
- 卷積核卷積
- 手把手帶你寫AR應用--AR尺子簡介
- 手把手帶你寫AR應用--AR尺子預覽
- 藉助Unity AR Foundation構建跨平臺AR應用Unity
- AIAR+硬體,開為科技落地建鄴萬達開啟AR互動營銷AI
- Linux基礎命令---arLinux
- Linux基礎命令—arLinux
- cuda 核函式函式
- (9)FIFO ip核
- IP核之ROM
- 【漏洞分析】Vestra DAO 攻擊事件:這個質押專案它取款不核銷呀事件
- 創夢天地攜手SYBO推出應用Mark AR 打造全新AR社交體
- 高通Atheros AR9287/AR9280無線網路卡晶片介紹ROS晶片
- web AR探索和總結Web
- AR/VR產品經理VR
- 核函式匯出的核矩陣性質的證明函式矩陣
- 蘋果A12是四核還是六核處理器?iPhone Xs的處理器是幾核的蘋果iPhone
- IP核:XDMA學習
- PVE核顯直通教程
- 國民級IP搭配AR玩法,讓這款遊戲開服次日便登頂日本暢銷榜遊戲
- CPU明明8個核,網路卡為啥拼命折騰一號核?
- AR/VR展望:2020年過後新常態下的AR/VR市場前景光明VR
- 沒AR眼鏡讓大家很失望,但蘋果做AR真沒鬧著玩蘋果
- AR新計算平臺要來了,蘋果會帶火AR遊戲嗎?蘋果遊戲
- CodeIgniter框架的AR連貫操作框架
- cpu、核與執行緒執行緒
- CAS之單核/多核理解單核
- FFT Vivado IP核實現FFT
- 匯聚優質AR應用開發者,技術助力AR領域繁榮生態