ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 跨Period修改工单Release Date

跨Period修改工单Release Date

原创 Linux操作系统 作者:沉珂 时间:2010-05-09 16:53:26 0 删除 编辑
为了补工单,当出现跨月时,可能会出现如下问题:
1、Release date为5月份
2、但是希望入库等Transaction 的Transaction date为4月份
需要修改如下两个地方:
1、WIP_discrete_jobs.date_released 为4月份的日期
2、新增一笔wip period balance 记录:relase date为5月份,所以系统会自动在WIP_PERIOD_BALANCES create一笔记录,对应的acct_period_id为5月份inv 对应的period id(select *from  ORG_ACCT_PERIODS).这里需要copy一笔五月份的记录,然后把acct_period_id栏位修改为4月份对应的inv period id

--update date_released
select *
  from WIP_discrete_jobs
 where wip_entity_id in
       (select wip_entity_id
          from wip_entities
         where wip_entity_name like upper('cotest2%'))
   for update;
--add a record for april
select *
  from WIP_PERIOD_BALANCES
 where wip_entity_id in
       (select wip_entity_id
          from wip_entities
         where wip_entity_name like upper('cotest2%'))
   for update;


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/385592/viewspace-662277/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-03-10

  • 博文量
    12
  • 访问量
    36752