Oracle Cloud ERP - AP - How to get the Status of the Invoice
Use the Below Query to get the Status of the Invoice.
SELECT DECODE(AP_INVOICES_UTILITY_PKG.GET_APPROVAL_STATUS(AIA.INVOICE_ID,AIA.INVOICE_AMOUNT,AIA.PAYMENT_STATUS_FLAG,AIA.INVOICE_TYPE_LOOKUP_CODE),
'FULL' , 'Fully Applied',
'NEVER APPROVED' , 'Never Validated',
'NEEDS REAPPROVAL', 'Needs Revalidation',
'CANCELLED' , 'Cancelled',
'UNPAID' , 'Unpaid',
'AVAILABLE' , 'Available',
'UNAPPROVED' , 'Unvalidated',
'APPROVED' , 'Validated',
'PERMANENT' , 'Permanent Prepayment',
NULL) "INSTATUS_SUMMARY"
,AIA.*
FROM AP_INVOICES_ALL AIA
WHERE AIA.INVOICE_ID = '300000283970076'
SELECT DECODE(AP_INVOICES_UTILITY_PKG.GET_APPROVAL_STATUS(AIA.INVOICE_ID,AIA.INVOICE_AMOUNT,AIA.PAYMENT_STATUS_FLAG,AIA.INVOICE_TYPE_LOOKUP_CODE),
'FULL' , 'Fully Applied',
'NEVER APPROVED' , 'Never Validated',
'NEEDS REAPPROVAL', 'Needs Revalidation',
'CANCELLED' , 'Cancelled',
'UNPAID' , 'Unpaid',
'AVAILABLE' , 'Available',
'UNAPPROVED' , 'Unvalidated',
'APPROVED' , 'Validated',
'PERMANENT' , 'Permanent Prepayment',
NULL) "INSTATUS_SUMMARY"
,AIA.*
FROM AP_INVOICES_ALL AIA
WHERE AIA.INVOICE_ID = '300000283970076'
Comments
Post a Comment