代码语言
.
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
】
删除 AP 发票相关脚本
作者:
dezai
/ 发布于
2014/1/26
/
1994
--发票 create table bak.AP_INVOICES_ALL_110707 as select * from AP_INVOICES_ALL aia where aia.invoice_id in (90490,90333) --发票行 create table bak.AP_INVOICE_LINES_110707 as select * from AP_INVOICE_LINES_ALL ala where ala.invoice_id in (90490,90333); --分配 create table bak.Ap_Invoice_Dist_110707 as select * from Ap_Invoice_Distributions_All aid where aid.invoice_id = 90490; --计划付款 create table bak.AP_PAYMENT_SCHEDULES_110707 as select * from AP_PAYMENT_SCHEDULES_ALL p where p.invoice_id in (90490,90333); --暂挂 create table bak.AP_HOLDS_110707 as select * from AP_HOLDS_ALL h where h.invoice_id = 90490; --付款行 create table bak.AP_INVOICE_PAYMENTS_110707 as select * from AP_INVOICE_PAYMENTS_all aip where aip.invoice_id = 90333; --付款头 create table bak.AP_CHECKS_110707 as select * from AP_CHECKS_ALL ac where ac.check_id = 64863; --分录事件 create table bak.xla_trans_entities_110707 as select * from xla.xla_transaction_entities xte where xte.source_id_int_1 in (90490, 90333) and xte.security_id_int_1 = 81 and application_id = 200; insert into bak.xla_trans_entities_110707 select * from xla.xla_transaction_entities xte where xte.source_id_int_1 in (64863) and xte.security_id_int_1 = 81 and application_id = 200; --分录头 create table bak.xla_ae_headers_110707 as select * from xla.xla_ae_headers xah where xah.entity_id in (9556541, 9554363); insert into bak.xla_ae_headers_110707 select * from xla.xla_ae_headers xah where xah.entity_id in (9554366); --会计事件 create table bak.xla_events_110707 as select * from xla_events xe where xe.event_id in (select event_id from xla.xla_ae_headers xah where xah.entity_id in (9556541, 9554363)); insert into bak.xla_events_110707 select * from xla_events xe where xe.event_id in (select event_id from bak.xla_ae_headers_110707 xah where xah.entity_id in (9554366)); --分录行 create table bak.xla_ae_lines_110707 as select * from xla.xla_ae_lines xal where xal.ae_header_id in (14101317, 14103708, 14299824); insert into bak.xla_ae_lines_110707 select * from xla.xla_ae_lines xal where xal.ae_header_id=14101322; --日记账导入参考 create table bak.gl_import_references_110707 as select * from gl.gl_import_references gr where gr.gl_sl_link_id in (select gl_sl_link_id from xla.xla_ae_lines xal where xal.ae_header_id in (14101317, 14103708, 14299824)); insert into bak.gl_import_references_110707 select * from gl.gl_import_references gr where gr.gl_sl_link_id in (25174221,25174222); --日记账头 create table bak.gl_je_headers_110707 as select * from gl_je_headers gjh where gjh.je_header_id in (select je_header_id from gl.gl_import_references gr where gr.gl_sl_link_id in (select gl_sl_link_id from xla.xla_ae_lines xal where xal.ae_header_id in (14101317, 14103708, 14299824))); insert into bak.gl_je_headers_110707 select * from gl_je_headers gjh where gjh.je_header_id =5553330; --日记账行 create table bak.gl_je_lines_110707 as select * from gl_je_lines gjl where gjl.je_header_id in (select je_header_id from gl.gl_import_references gr where gr.gl_sl_link_id in (select gl_sl_link_id from xla.xla_ae_lines xal where xal.ae_header_id in (14101317, 14103708, 14299824))); insert into bak.gl_je_lines_110707 select * from gl_je_lines gjl where gjl.je_header_id=5553330; --日记帐批 create table bak.gl_je_batches_110707 as select * from gl_je_batches gjb where gjb.je_batch_id in (select je_batch_id from gl.gl_import_references gr where gr.gl_sl_link_id in (select gl_sl_link_id from xla.xla_ae_lines xal where xal.ae_header_id in (14101317, 14103708, 14299824))); --发票 delete from AP_INVOICES_ALL aia where aia.invoice_id in (90490,90333) --发票行 delete from AP_INVOICE_LINES_ALL ala where ala.invoice_id in (90490,90333); --分配 delete from Ap_Invoice_Distributions_All aid where aid.invoice_id = 90490; --计划付款 delete from AP_PAYMENT_SCHEDULES_ALL p where p.invoice_id in (90490,90333); --暂挂 delete from AP_HOLDS_ALL h where h.invoice_id = 90490; --付款行 delete from AP_INVOICE_PAYMENTS_all aip where aip.invoice_id = 90333; --付款头 delete from AP_CHECKS_ALL ac where ac.check_id = 64863; --分录事件 delete from xla.xla_transaction_entities xte where xte.source_id_int_1 in (90490, 90333) and xte.security_id_int_1 = 81 and application_id = 200; delete from xla.xla_transaction_entities xte where xte.source_id_int_1 in (64863) and xte.security_id_int_1 = 81 and application_id = 200; --分录头 delete from xla.xla_ae_headers xah where xah.entity_id in (9556541, 9554363); delete from xla.xla_ae_headers xah where xah.entity_id in (9554366); --会计事件 delete from xla_events xe where xe.event_id in (select event_id from bak.xla_ae_headers_110707 xah where xah.entity_id in (9556541, 9554363)); delete from xla_events xe where xe.event_id in (select event_id from bak.xla_ae_headers_110707 xah where xah.entity_id in (9554366)); --分录行 delete from xla.xla_ae_lines xal where xal.ae_header_id in (14101317, 14103708, 14299824); delete from xla.xla_ae_lines xal where xal.ae_header_id=14101322; --日记账导入参考 delete from gl.gl_import_references gr where gr.gl_sl_link_id in (select gl_sl_link_id from bak.xla_ae_lines_110707 xal where xal.ae_header_id in (14101317, 14103708, 14299824)); delete from gl.gl_import_references gr where gr.gl_sl_link_id in (25174221,25174222); --日记账头 delete from gl_je_headers gjh where gjh.je_header_id in (select je_header_id from bak.gl_import_references_110707 gr where gr.gl_sl_link_id in (select gl_sl_link_id from bak.xla_ae_lines_110707 xal where xal.ae_header_id in (14101317, 14103708, 14299824))); delete from gl_je_headers gjh where gjh.je_header_id =5553330; --日记账行 delete from gl_je_lines gjl where gjl.je_header_id in (select je_header_id from bak.gl_import_references_110707 gr where gr.gl_sl_link_id in (select gl_sl_link_id from bak.xla_ae_lines_110707 xal where xal.ae_header_id in (14101317, 14103708, 14299824))); delete from gl_je_lines gjl where gjl.je_header_id=5553330; --日记帐批 delete from gl_je_batches gjb where gjb.je_batch_id=5007897 select rowid,gjb.* from gl_je_batches gjb where gjb.je_batch_id in (select je_batch_id from bak.gl_import_references_110707 gr where gr.gl_sl_link_id in (select gl_sl_link_id from bak.xla_ae_lines_110707 xal where xal.ae_header_id in (14101317, 14103708, 14299824)));
试试其它关键字
删除
AP
发票
同语言下
.
设置窗体的位置
.
初始化操作
.
在FORMS调用WEB页面
.
判断数据块的项是否为空
.
EBS 循环处理块记录
.
Oracle Form中调用并发请求生成报表并输出为PDF的方法
.
添加并发程序到指定职责API
.
EBS请求查询输出
.
删除 AP 发票相关脚本
.
ebs安全性
可能有用的
.
C#实现的html内容截取
.
List 切割成几份 工具类
.
SQL查询 多列合并成一行用逗号隔开
.
一行一行读取txt的内容
.
C#动态修改文件夹名称(FSO实现,不移动文件)
.
c# 移动文件或文件夹
.
c#图片添加水印
.
Java PDF转换成图片并输出给前台展示
.
网站后台修改图片尺寸代码
.
处理大图片在缩略图时的展示
dezai
贡献的其它代码
(
1065
)
.
双色球
.
列出所有物理网络适配器
.
快乐数的 Python 实现
.
计算当月还剩天数
.
猜属相
.
二十四小时时钟
.
每日一语
.
很酷的日历
.
超长日历表单
.
最简单的时钟
Copyright © 2004 - 2024 dezai.cn. All Rights Reserved
站长博客
粤ICP备13059550号-3