Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Calculate tax %

Posted on by Microsoft Employee

Hi,

I am building EDI message for Invoicing. I need to put in my message the VAT%.

My problem is i dont understand how to get this value from custInvoiceTrans.TaxGroup and custInvoiceTrans.TaxItemGroup.

Can somebody help me ?

thank you

PS: I'm using this good old AX4

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Calculate tax %

    Thank you very much both of you for explanation, and solution. This is all good, I will just check if I need to add a date range as you said and it's done.

    EDIT: Ok no date are specified in taxData

  • Verified answer
    Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Calculate tax %

    Hi

    Try this:

     select taxData
     join taxOnItem
         where taxOnItem.TaxCode      == taxData.TaxCode
            && taxOnItem.TaxItemGroup == custInvoiceTrans.TaxItemGroup
     join taxGroupData
         where taxGroupData.TaxCode   == taxOnItem.TaxCode
            && taxGroupData.TaxGroup  == custInvoiceTrans.TaxGroup;
    
     info(strfmt("%1", taxData.TaxValue));

    You may add date range to taxData table if needed.

  • Verified answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Calculate tax %

    Hi,

    The item sales tax group and sales tax group combination result in a VAT code.

    You can identify this VAT code in the item sales tax group and sales tax group setup forms in GL.

    The % value of the tax is linked to the VAT code in a special form/table.

    Best regards,

    Ludwig

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans