首页 > 数据库 >【OracleEBS】AR 核销

【OracleEBS】AR 核销

时间:2024-03-20 09:12:38浏览次数:34  
标签:gcc code OracleEBS 核销 AR ard ori new id

--核销
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'

标签:gcc,code,OracleEBS,核销,AR,ard,ori,new,id
From: https://www.cnblogs.com/ivenlin/p/18084414

相关文章

  • Android ART编译模式解析
    前言ART实际就是Androidruntime的缩写,他是Android版本新的虚拟机诞生ART使用预先(AOT)编译,并且从Android7.0(代号Nougat,简称N)开始结合使用AOT、即时(JIT)编译和配置文件引导型编译。区别1.预先编译ART模式与Dalvik模式最大的不同在于,在启用ART模式后,系统在......
  • Arkts ForEach循环使用
    ForEach循环数组对象时要指定对象的唯一标识例如id,否则只会显示第一个@StatetabsList:object[]=[{name:'砍价活动',id:1,icon:'https://php-b2c.likeshop.cn/uploads/images/2022062414322367e6a5479.png'},{name:'拼团活动',id:2,icon:'https......
  • MK Glow - Bloom & Lens & Glare
    MKGlow(Ultimate)是一种使用简单、功能丰富且效果超级迅速的后处理效果,可以模拟明亮表面的光照散射。除了散光效果之外,还提供一些高度自定义的特效,比如镜头表面、镜头眩光和强光。该着色器兼容传统、轻便、通用和高分辨率渲染管线。两大直观工作流程:阈值:根据像素亮度、阈值和......
  • 【OracleEBS】WIP 完工入库单
    模块:WIP 相关表:inv.mtl_material_transactions物料事务处理表(transaction_source_id与we.wip_entity_id连接) inv.mtl_transaction_lot_numbers物料事务处理批次号表(transaction_id与mmt.transaction_id连接) inv.mtl_system_items_b物料表(inventory_item_id与mmt......
  • DALLE2: Hierarchical Text-Conditional Image Generation with CLIP Latents
    名称DALLE2:HierarchicalText-ConditionalImageGenerationwithCLIPLatents也叫UnCLIP时间:22.04机构:OpenAITL;DROpenAI的首篇从CLIP的imageembedding生成图像的方法,实验证明这种方法生成的图像能够保留丰富的语义与风格分布。MethodPriorPrior模块作用是给定tex......
  • parse_str解析问题
    php解析raw格式数据: $raw_params=file_get_contents("php://input");收到原数据格式,得到类似:operator_token=10ac2753e78abxxxxx62d1f70fc2aaca&secret_key=bff7e71e45bad3ccexxx76e309&operator_player_session=RXZvR3dIMmpDUDZIL3hHZm0vdHRQZz09Ojo0iswLEYe3w/7P+F......
  • 鸿蒙HarmonyOS实战-工具安装和Helloworld案例
    ......
  • Aria2安装教程
    Aria2安装教程时间:2024-3-1922:41:03版本:1.37.0官方下载地址:Releases·aria2/aria2(github.com)打开网址后点击这里。​​拉到最后,选择自己合适的版本下载即可,我选择的是win64版本。​​解压文件夹,放到自己合适的目录下。​​在当前目录新建四个文件:Aria2.log(日志......
  • JB Wants to Earn Big Money(The 19th Zhejiang Provincial Collegiate Programming Co
    #include<bits/stdc++.h>#defineendl'\n'usingll=longlong;typedefunsignedlonglongull;usingnamespacestd;voidGordenGhost();signedmain(){#ifdefGordenfreopen("in.txt","rt",stdin);freopen......
  • 【ARM 嵌入式 C 入门及渐进11 -- 确保数据写入寄存器】
    文章目录背景1.内存障碍2.对齐访问3.缓存一致性4.写缓冲区背景在ARM架构中,要确保通过write函数写入的数据真正地被写入到寄存器中,需要考虑几个方面:内存障碍(MemoryBarrier):使用内存障碍指令来确保之前的所有内存操作完成后再执行后续的指令。对齐访问:确保......