EBS会计期间关闭-应付模块
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)
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341