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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

X++ code to fetch tax from vendor invoice journal . totally stuck on it

(0) ShareShare
ReportReport
Posted on by 2

help needed

I have the same question (0)
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    RE: X++ code to fetch tax from vendor invoice journal . totally stuck on it

    I don't know exactly which tables these Vendor invoice journals will be present as I did not work on it earlier and not aware the navigation in UI. For tax purposes you can give some relation with these below mentioned 2 tables and can get the tax.

    TAXDOCUMENTROWTRANSACTION and TaxDocumentComponentTransaction

  • Sachin Mittal Profile Picture
    2 on at
    RE: X++ code to fetch tax from vendor invoice journal . totally stuck on it

    these will not work i want top fetch indian tax details from vendinvoicejour table

  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    RE: X++ code to fetch tax from vendor invoice journal . totally stuck on it

    These should work. I did similar thing for Indian localisation for project invoices. Just try to give a query.

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    RE: X++ code to fetch tax from vendor invoice journal . totally stuck on it

    Use the below query and pick all the tax details you need from TAXDOCUMENTROWTRANSACTION table

    .

    select tt.* from VENDINVOICEJOUR v
    join VENDINVOICETRANS vt
    on vt.PURCHID = v.PURCHID and
    vt.INVOICEID = v.INVOICEID and
    vt.INVOICEDATE = v.INVOICEDATE and
    vt.NUMBERSEQUENCEGROUP = v.NUMBERSEQUENCEGROUP and 
    vt.INTERNALINVOICEID = v.INTERNALINVOICEID
    join TAXDOCUMENTROWTRANSACTION tt
    on tt.INVOICEID = vt.INVOICEID
    join TaxDocumentComponentTransaction T on T.TAXDOCUMENTROWTRANSACTIONRECID = tt.RECID
    where  v.INVOICEID = 'Invoice Id'

  • Sachin Mittal Profile Picture
    2 on at
    RE: X++ code to fetch tax from vendor invoice journal . totally stuck on it

    as i was saying , vendinvoicetrans only contains invoices of purchase order invoices but i want tax for all vendor transactions

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 563 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans