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

Announcements

No record found.

News and Announcements icon
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

    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

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

  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    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

    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

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 577 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 309

#3
Diego Mancassola Profile Picture

Diego Mancassola 259

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans