代码语言
.
CSharp
.
JS
Java
Asp.Net
C
MSSQL
PHP
Css
PLSQL
Python
Shell
EBS
ASP
Perl
ObjC
VB.Net
VBS
MYSQL
GO
Delphi
AS
DB2
Domino
Rails
ActionScript
Scala
代码分类
文件
系统
字符串
数据库
网络相关
图形/GUI
多媒体
算法
游戏
Jquery
Extjs
Android
HTML5
菜单
网页交互
WinForm
控件
企业应用
安全与加密
脚本/批处理
开放平台
其它
【
OracleEBS
】
销售成本与采购成本分析
作者:
Dezai.CN
/ 发布于
2013/1/7
/
1397
前提: 1>针对使用FIFO/LIFO的成本类型; 2>要指定自己的查询参数; SELECT x."AR_Num", x."Item", x."AR_Date", x."AR_Qty", x."Cost_Amount", x."Item_Cost", x."Lay_Id", x."Receipt_Num", y."Invoice_Num", y."Voucher_Num", y."Unit_Price" FROM (SELECT DISTINCT rct.trx_number "AR_Num", msi.segment1 "Item", rct.trx_date "AR_Date", mmt.inventory_item_id, rctl.quantity_invoiced "AR_Qty", cil.inv_layer_id "Lay_Id", cil.layer_cost "Item_Cost", rctl.quantity_invoiced * cil.layer_cost "Cost_Amount", rsh.receipt_num "Receipt_Num", (SELECT rt1.transaction_id FROM po.rcv_transactions rt1 WHERE rt1.interface_transaction_id = rt.interface_transaction_id AND rt1.parent_transaction_id = -1) rcv_transaction_id FROM ar.ra_customer_trx_all rct, ar.ra_customer_trx_lines_all rctl, inv.mtl_material_transactions mmt, inv.mtl_cst_layer_act_cost_details mcl, bom.cst_inv_layers cil, inv.mtl_system_items_b msi, po.rcv_transactions rt, po.rcv_shipment_headers rsh, po.rcv_shipment_lines rsl, inv.mtl_material_transactions mmt1 WHERE rct.set_of_books_id = &sob AND rct.customer_trx_id = rctl.customer_trx_id AND rctl.line_type = 'LINE' AND EXISTS ( SELECT * FROM ont.oe_order_headers_all ooh WHERE ooh.org_id = &ou_id AND ooh.order_number = rctl.sales_order AND EXISTS ( SELECT 'true' FROM ont.oe_transaction_types_all ott WHERE ott.org_id = &ou_id AND ott.cost_of_goods_sold_account IS NOT NULL AND ott.end_date_active IS NULL AND ooh.order_type_id = ott.transaction_type_id AND EXISTS ( SELECT 'TRUE' FROM gl.gl_code_combinations gcc WHERE ott.cost_of_goods_sold_account = gcc.code_combination_id AND gcc.segment4 = '61110'))) ---此处是针对销售成本科目,选择自己系统弹性域段,可能不一定是segment4; AND TO_CHAR (rct.trx_date, 'yyyy-mm') = '&date' AND mmt.transaction_id = mcl.transaction_id AND mcl.cost_element_id = 1 AND mcl.layer_id = cil.layer_id AND mcl.inv_layer_id = cil.inv_layer_id AND rctl.interface_line_attribute6 = mmt.trx_source_line_id AND mmt.trx_source_line_id = mmt.source_line_id AND rctl.inventory_item_id = mmt.inventory_item_id AND msi.organization_id = &org_id --master item organization AND mmt.inventory_item_id = msi.inventory_item_id AND rt.shipment_header_id = rsh.shipment_header_id AND rt.shipment_line_id = rsl.shipment_line_id AND rt.transaction_id = mmt1.source_line_id AND mmt1.transaction_id = cil.create_transaction_id) x, (SELECT ai.invoice_num "Invoice_Num", ai.doc_sequence_value "Voucher_Num", aid.unit_price "Unit_Price", aid.rcv_transaction_id FROM ap.ap_invoices_all ai, ap.ap_invoice_distributions_all aid WHERE ai.set_of_books_id = &sob AND ai.invoice_id = aid.invoice_id AND aid.line_type_lookup_code = 'ITEM') y WHERE x.rcv_transaction_id = y.rcv_transaction_id
试试其它关键字
销售成本
同语言下
.
设置窗体的位置
.
初始化操作
.
在FORMS调用WEB页面
.
判断数据块的项是否为空
.
EBS 循环处理块记录
.
Oracle Form中调用并发请求生成报表并输出为PDF的方法
.
添加并发程序到指定职责API
.
EBS请求查询输出
.
删除 AP 发票相关脚本
.
ebs安全性
可能有用的
.
C#实现的html内容截取
.
List 切割成几份 工具类
.
SQL查询 多列合并成一行用逗号隔开
.
一行一行读取txt的内容
.
C#动态修改文件夹名称(FSO实现,不移动文件)
.
c# 移动文件或文件夹
.
c#图片添加水印
.
Java PDF转换成图片并输出给前台展示
.
网站后台修改图片尺寸代码
.
处理大图片在缩略图时的展示
Dezai.CN
贡献的其它代码
(
4037
)
.
多线程Socket服务器模块
.
生成随机密码
.
清除浮动样式
.
弹出窗口居中
.
抓取url的函数
.
使用base HTTP验证
.
div模拟iframe嵌入效果
.
通过header转向的方法
.
Session操作类
.
执行sqlite输入插入操作后获得自动编号的ID
Copyright © 2004 - 2024 dezai.cn. All Rights Reserved
站长博客
粤ICP备13059550号-3