ITPub博客

首页 > 应用开发 > IT综合 > AP不能创建会计分录

AP不能创建会计分录

原创 IT综合 作者:yuekczy 时间:2007-05-27 17:51:09 0 删除 编辑

在发票匹配完成后,创建会计分录出现以下提示:

使用select *
from ap_ae_headers_all a
where a.accounting_event_id in
(select aea.accounting_event_id
from ap_accounting_events_all aea
where aea.event_status_code = 'CREATED')

找到了出问题的发票

查看该发票的行状态:

select *
from ap_ae_lines_all a
where a.ae_header_id in
(select b.ae_header_id
from ap_ae_headers_all b, ap_accounting_events_all c
where b.accounting_event_id = c.accounting_event_id
and c.source_table = 'AP_INVOICES'
and c.source_id = 14160)

查看ap_accounting_events_all表中event_status_code字段的状态后,发现该行状态与应用中的状态不匹配(应用中的状态是已创建会计分录,但event_status_code字段的状态不为ACCOUNTED

所以使用以下脚本更改其状态:

update ap_accounting_events_all a
set a.event_status_code ='ACCOUNTED'
where a.accounting_event_id =18950
and a.source_id = 14160

问题解决,但提交“应付款管理系统会计核算流程”请求,传送总账时出错,估计和以上操作有关,具体以后观察

[@more@]

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

上一篇: 触发器
请登录后发表评论 登录
全部评论
  • 博文量
    14
  • 访问量
    306720