您好,登录后才能下订单哦!
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进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。