|
|

楼主 |
发表于 2006/11/6 08:46:18
|
显示全部楼层
如此这般即可解决
a) Verify if there are events not tied to an invoice
select source_id, accounting_event_id, event_type_code, event_status_code
from ap_accounting_events_all aae
where source_table='AP_INVOICES'
and not exists (select 1
from ap_invoice_distributions_all
where accounting_event_id=aae.accounting_event_id);
b) Delete the events not tied to an invoice
delete from ap_accounting_events_all aae
where source_table='AP_INVOICES'
and not exists (select 1
from ap_invoice_distributions_all
where accounting_event_id=aae.accounting_event_id);
commit;
c) Run the Payables Accounting process(应付会计核算流程) again and verify that you are not
getting the same error |
|