AP不能创建会计分录

来源:互联网 发布:免费做广告的软件 编辑:程序博客网 时间:2024/04/29 22:05
发票匹配完成后,创建会计分录出现以下提示:


使用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
问题解决,但提交“应付款管理系统会计核算流程”请求,传送总账时出错,估计和以上操作有关,具体以后观察
原创粉丝点击