注册 登录
壹佰网|ERP100 - 企业信息化知识门户 返回首页

的个人空间 https://www.erp100.com/?0 [收藏] [复制] [RSS]

日志

采购订单状态更新脚本

已有 1945 次阅读2008/2/25 13:02

---执行下面的语句就可以了. 我之前碰到这种状况就是这样处理的. 参数P_po_id是当前订单号码.
 update po_headers_all set APPROVED_FLAG='N' ,approved_date=null,authorization_status=NULL WHERE SEGMENT1=2080104;

  delete from po_headers_archive_all where segment1=2080104;

  delete from po_lines_archive_all where po_header_id=(select po_header_id from po_headers_all where segment1=2080104);

  delete from po_line_locations_archive_all where po_header_id=(select po_header_id from po_headers_all where segment1=2080104);

  delete from po_distributions_archive_all where po_header_id=(select po_header_id from po_headers_all where segment1=2080104);

   COMMIT;

评论 (0 个评论)

QQ|Archiver|小黑屋|手机版|壹佰网 ERP100 ( 京ICP备19053597号-2 )

Copyright © 2005-2012 北京海之大网络技术有限责任公司 服务器托管由互联互通
手机:13911575376
网站技术点击发送消息给对方83569622   广告&合作 点击发送消息给对方27675401   点击发送消息给对方634043306   咨询及人才点击发送消息给对方138011526

GMT+8, 2025/11/29 11:45 , Processed in 0.008261 second(s), 12 queries , File On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

返回顶部