您好,登錄后才能下訂單哦!
1.子分類帳期間關閉例外報表
SELECT *
FROM XLA_EVENTS XE
JOIN XLA.XLA_TRANSACTION_ENTITIES XTE
ON XE.ENTITY_ID = XTE.ENTITY_ID
WHERE XE.APPLICATION_ID = 200
AND XTE.LEDGER_ID = 2029
AND XE.EVENT_STATUS_CODE <>'P'
AND XE.EVENT_DATE > TO_DATE('2017-01-28','YYYY-MM-DD')
AND XE.EVENT_DATE <= TO_DATE('2017-02-28','YYYY-MM-DD');
2.未入帳事務處理報表
(1)未入帳的發票
select * from ap_invoice_distributions_all aid where aid.posted_flag <> 'Y';
或者是未驗證的發票
select * from ap_invoices_all ai where ai.invoice_id not in (select aid.invoice_id from ap_invoice_distributions_all aid)
(2) 未入帳的預付款發票
select * from ap_prepay_history_all aph where pah.posted_flag <> 'Y'
(3)未入帳的付款
SELECT *
FROM AP_PAYMENT_HISTORY_ALL APH
WHERE APH.ACCOUNTING_DATE > TO_DATE('2017-01-28', 'YYYY-MM-DD')
AND APH.ACCOUNTING_DATE <= TO_DATE('2017-02-28', 'YYYY-MM-DD')
AND APH.POSTED_FLAG <> 'Y'
AND APH.ORG_ID IN (SELECT HOU.ORGANIZATION_ID
FROM HR_OPERATING_UNITS HOU
WHERE HOU.SET_OF_BOOKS_ID = 2029)
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。