操作人员误开了 2012-07 会计期间,并有未过账发票(编号:AAA111101BX01),该发票还未走审批流程,已取消。
关闭期间报错:有未过账发票
使用apps登录数据库,在数据库进行了如下操作:
SELECT * FROM ap.AP_INVOICES_ALL where invoice_num ='AAA111101BX01'
可以查到invoice_id(假设为15553),并根据 invoice_id 查询:
select * fromap.ap_invoice_distributions_all where invoice_id='15553'
可以查询到event_id ,并根据event_id进行查询:
select * from xla_events where event_id='82637'
select * from xla_events where event_id='82636'
select * from xla.xla_transaction_entitieswhere Transaction_number='AAA111101BX01'
然后一一将查到的信息删除
delete from ap.AP_INVOICES_ALL where invoice_num ='AAA111101BX01'
delete from ap.ap_invoice_distributions_all where invoice_