web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AccountingDistribution query for VendInvoiceJour, VendInvoiceTrans (ax 2012)

(0) ShareShare
ReportReport
Posted on by 2,245

Hi all,

In the vendor invoice journal we have a useful view  pressing in the button "View distributions". There we can see per invoice line the postings that would be done or were done for each invoice line. Also there info about the taxes.

I need to access to this information in code with a query but I find the table structure a little confusing. The tables are AccountingDistribution, SourceDocumentHeader, SourceDocumentLine, AccountingEvent, ...

Anyone have any idea how create a query that gives from an invoice all the information per invoice line that we can see in the tree that is on the left side of the Accounting Distribution form?

Thanks!

*This post is locked for comments

I have the same question (0)
  • Danzel Zuo Profile Picture
    131 on at
    RE: AccountingDistribution query for VendInvoiceJour, VendInvoiceTrans (ax 2012)

    tks a lot!

  • Pedro Rodriguez Profile Picture
    2,245 on at
    Re: AccountingDistribution query for VendInvoiceJour, VendInvoiceTrans (ax 2012)

    Ok. I found it. On AccountingDistribution table the field SourceDocumentHeader points to VendInvoiceJour.SourceDocumentHeader and SourceDocumentLine points to VendInvoiceTrans.SourceDocumentLine, TaxTrans.SourceDocumentLine, and so on...

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#2
Community Member Profile Picture

Community Member 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans