Академический Документы
Профессиональный Документы
Культура Документы
a.
This is a data fix and as all systems are different it is possible that
it may have an adverse affect on your system. Support has researched
your data and feel that this is the best course of action. However, it
is strongly recommended that this first be done on a copy of production
to be sure it has the desired affect and does not cause other issues.
b.
has identified. This script should not be used or re-used without specific
instructions from support.
c.
Do not run any of the following accounting processes until the datafix i
s complete:
Do not run the Payables Accounting Process
Do not run the Payables Transfer to General Ledger
Do not use the Create Online Accounting function
d.
If this datafix deletes or updates accounting lines from AP that have be
en transferred
and posted in GL, a manual JE will need to be created in GL to account for this.
Also, drilldown from GL to AP will no longer work for these entries.
e.
All backup tables created by the scripts below should be retained at lea
st
through the next closing cycle, until AP and GL are fully reconciled.
********** IMPORTANT **********
1. Backup the check row we are going to update
create table SR_39632646571_aca as
select *
from ap_checks_all
where check_id in (
select e.source_id + 1
from ap_accounting_events_all e
where e.event_type_code = 'PAYMENT'
and e.event_status_code in ('CREATED', 'INCOMPLETE')
and not exists (
select c.check_id
from ap_checks_all c
where c.check_id = e.source_id)
and exists (
select p.check_id
from ap_invoice_payments_all p
where p.accounting_event_id = e.accounting_event_id)
and exists (
select c1.check_id
from ap_checks_all c1
where c1.check_id = e.source_id + 1
and status_lookup_code in ('NEGOTIABLE','ISSUED'))
and not exists (
select p1.check_id
from ap_invoice_payments_all p1
where p1.check_id = e.source_id + 1));