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 6

help needed

  • 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
    6 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
    6 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 245 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 227

#3
Subra Profile Picture

Subra 184 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans