Hello Srikkanth -
***ACTION PLAN ONLY IN TEST INSTANCE***
Kindly follow the below action plan in test instance and advice me the results.
1. Create backup table for invoice header
Create table SR_3_27052490371_AIA as select * from ap_invoices_all
where invoice_id=3376362;
2. Create backup table for payment schedules.
Create table SR_3_27052490371_apsa as select * from ap_payment_schedules_all
where invoice_id=3376362;
3. Update invoice table.
UPDATE ap_invoices_all
SET payment_status_flag = 'P',
last_update_date = SYSDATE,
last_updated_by = -1
WHERE invoice_id = 3376362;
--do not proceed to commit if more than one row updated.
4. update payment schedules table.
UPDATE ap_payment_schedules_all
SET amount_remaining = &remaining_amount,
payment_status_flag = 'P',
last_update_date = SYSDATE,
last_updated_by = -1
WHERE invoice_id = 3376362;
--do not proceed to commit if more than one row updated.
COMMIT;
5. Check the invoice status and complete the payment. (Also check the related
reports)