财务事务处理,销售订单,库存事务处理,AP应付关联语句
来源:互联网 发布:淘宝里权重是什么意思 编辑:程序博客网 时间:2024/05/16 09:01
select cus.customer_number,
cus.customer_name,
ood.ORGANIZATION_CODE,
mmt.subinventory_code,
rcta.interface_header_attribute1 order_number,
msi.segment1,
msi.description,
mmt.transaction_date,
-mmt.transaction_quantity transaction_quantity,
apl.amount,
cux_17_cst_outstock_pkg.get_batchs(mmt.transaction_id) batchs
from ra_customer_trx_all rcta
,ra_batch_sources_all rbsa
,RA_CUST_TRX_TYPES_ALL rctt
,ra_customer_trx_lines_all rctl
,oe_order_lines_all ool
,ar_customers_all_v cus
,org_organization_definitions ood
,mtl_material_transactions mmt
, mtl_system_items_b msi
,ap_invoice_lines_all apl
where rcta.batch_source_id = rbsa.batch_source_id
and rbsa.name = 'Order Entry'
and rbsa.org_id = rcta.org_id
and rcta.cust_trx_type_id = rctt.cust_trx_type_id
and rcta.org_id = rctt.org_id
and rctt.name = '销售发票'
and rctl.customer_trx_id=rcta.customer_trx_id
and rctl.line_type='LINE'
and rctl.interface_line_attribute10 not in
(select ood.ORGANIZATION_ID from org_organization_definitions ood where ood.OPERATING_UNIT=rcta.org_id)
and ool.org_id=rctl.org_id
and ool.line_id=rctl.interface_line_attribute6
and cus.customer_id=rcta.sold_to_customer_id
and ood.ORGANIZATION_ID=rctl.interface_line_attribute10
and mmt.organization_id = ood.organization_id
and mmt.source_line_id = ool.line_id
and msi.organization_id=mmt.organization_id
and msi.inventory_item_id=mmt.inventory_item_id
and apl.org_id=rcta.org_id
and apl.reference_2=mmt.transaction_id
and rcta.org_id = fnd_profile.VALUE('ORG_ID')
cus.customer_name,
ood.ORGANIZATION_CODE,
mmt.subinventory_code,
rcta.interface_header_attribute1 order_number,
msi.segment1,
msi.description,
mmt.transaction_date,
-mmt.transaction_quantity transaction_quantity,
apl.amount,
cux_17_cst_outstock_pkg.get_batchs(mmt.transaction_id) batchs
from ra_customer_trx_all rcta
,ra_batch_sources_all rbsa
,RA_CUST_TRX_TYPES_ALL rctt
,ra_customer_trx_lines_all rctl
,oe_order_lines_all ool
,ar_customers_all_v cus
,org_organization_definitions ood
,mtl_material_transactions mmt
, mtl_system_items_b msi
,ap_invoice_lines_all apl
where rcta.batch_source_id = rbsa.batch_source_id
and rbsa.name = 'Order Entry'
and rbsa.org_id = rcta.org_id
and rcta.cust_trx_type_id = rctt.cust_trx_type_id
and rcta.org_id = rctt.org_id
and rctt.name = '销售发票'
and rctl.customer_trx_id=rcta.customer_trx_id
and rctl.line_type='LINE'
and rctl.interface_line_attribute10 not in
(select ood.ORGANIZATION_ID from org_organization_definitions ood where ood.OPERATING_UNIT=rcta.org_id)
and ool.org_id=rctl.org_id
and ool.line_id=rctl.interface_line_attribute6
and cus.customer_id=rcta.sold_to_customer_id
and ood.ORGANIZATION_ID=rctl.interface_line_attribute10
and mmt.organization_id = ood.organization_id
and mmt.source_line_id = ool.line_id
and msi.organization_id=mmt.organization_id
and msi.inventory_item_id=mmt.inventory_item_id
and apl.org_id=rcta.org_id
and apl.reference_2=mmt.transaction_id
and rcta.org_id = fnd_profile.VALUE('ORG_ID')
- 财务事务处理,销售订单,库存事务处理,AP应付关联语句
- INV: Transactions库存事务处理
- 销售订单车辆库存
- 库存事务处理现有量检查
- 事务处理
- 事务处理
- 事务处理
- 事务处理
- 事务处理
- 事务处理
- 事务处理
- 事务处理
- 事务处理
- 事务处理
- 事务处理
- 事务处理
- 事务处理
- 事务处理
- C#实现WinForm窗口全屏显示
- scrollBy实现view随意移动并显示坐标
- ftp下载目录下所有文件及文件夹内(递归)
- 如何提高banner设计含量--网上的一篇文章--感悟
- jquery 插件
- 财务事务处理,销售订单,库存事务处理,AP应付关联语句
- SqlServer和Oracle中一些常用的sql语句10 特殊应用
- 25个完美的Opencart模板,让顾客无法抗拒!
- 【Windows7 64位与32位安全性大对比】
- MFC中快速应用OpenCV
- vmware环境下linux中创建samba服务器
- jquery表单验证扩展三
- Protel 2004 电路设计 鲁捷,焦振宇,孟凡文编著
- 【转】深入理解Linux内核--信号(阅读笔记)