随笔 - 571  文章 - 4  评论 - 253  阅读 - 72万

AP_创建标准发票后会计科目的变化(概念)

2014-06-04 Created By BaoXinjian

1. 创建Invoice,并查看所创建的科目

    

    

    因为其Primary Ledger<US_USD_P>, 其对应一个Second Ledger<US_USD>,所以其会创建两套科目

 

2. Invoice 科目分析

    (1).对应的DR<Item Expense>来源于Invoice Disturbutions Accounting

        

    (2). 对应的CR<Liability>来源于Supplier Site的设定

        

 

3. 常用的SQL

select * from ap_invoices_all
where org_id=89
and invoice_num =  'BXJ Test'
and invoice_id = 475109

 

select * from ap_invoice_lines_all
where invoice_id = 475109

 

select accounting_event_id from ap_invoice_distributions_all
where invoice_id = 475109

 

select * from xla_events
where event_id = 2881445

 

select * from xla_ae_headers
where event_id = 2881445

 

select * from xla_ae_lines
where ae_header_id in (33140902,33140903)

 

select * from xla_distribution_links
where ae_header_id in (33140902,33140903)

 

select * from xla_transaction_entities
where entity_id = 2839246

 

Thanks and Regards
 

 

posted on   东方瀚海  阅读(588)  评论(0编辑  收藏  举报
编辑推荐:
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
阅读排行:
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· DeepSeek如何颠覆传统软件测试?测试工程师会被淘汰吗?

点击右上角即可分享
微信分享提示