Payables: Invoices Rejected in ap invoices interface: what is right query to show summary
If I want to show the Total Invoices Rejected with Total Amount value then I believe below query is enough.
SELECT COUNT (1), SUM (invoice_amount) FROM apps.ap_invoices_interface WHERE source = 'XXXX' AND org_id = 84 AND TRUNC (creation_date) = TRUNC (SYSDATE) AND status = 'REJECTED'.
Since I am showing the summary I believe I do not have to use AP_INVOICE_LINES_INTERFACE. Please let me know if I am missing anything or am i correct with the above query. Appreciate any suggestions if any.