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, ...
Answered

Print Sales Tax Code and Sales Tax Amount in the Lines in Free Text Invoice

(0) ShareShare
ReportReport
Posted on by 2,360

Hello,

I want to print Sales Tax Code and Sales Tax Amount in the Free Text Invoice Report Lines.

pastedimage1638394015850v1.png

Is it possible out of the Box? Or will have to extend the DP class? Is there any blog on how to achieve it writing the extension?

Appreciate any tips.

Best Regards,

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    304,711 Super User 2026 Season 1 on at

    Hi MYGz,

    There is documentation available from Microsoft: Customize through extension and overlayering - Finance & Operations | Dynamics 365 | Microsoft Docs

    At least the DP contains logic for a Tax summary per Sales tax code and a sales tax code per line. Not sure if the tax amounts are part of the standard DP, but using the documentation, you should be able to extend it.

  • MYGz Profile Picture
    2,360 on at

    Hello Andre,

    Thanks for the reply.

    I made these changes,

    1. GL > GL Parameters > Sales Tax > Calculation Method > Line

    2. Tax > Sales Tax Code > Print Code > VAT15% (Print Code)

    3. AR > Setup > Forms Setup > General > Sales Tax Specification > "Registration and Company Currency"

    After these changes the Sales Tax Code is coming on the Line. But Sales Tax Amount is still not coming. I tried all the Tax column in the FreeTextInvoiceDS ie TaxAmount, TaxBaseAmount etc. But the value is not coming.

    pastedimage1638448886751v2.png

    I'm getting Tax Direction error while try to manually populate the FreeTextInvoiceTmp,

    _tax = Tax::calcTaxAmount(_custInvoiceTrans.TaxGroup,_custInvoiceTrans.TaxItemGroup,_custInvoiceJour.InvoiceDate,_custInvoiceTrans.CurrencyCode,_custInvoiceTrans.lineAmountInclTax(),TaxModuleType::FreeTxtInvoice);

  • André Arnaud de Calavon Profile Picture
    304,711 Super User 2026 Season 1 on at

    Hi MYGz,

    What exactly do you mean with "getting Tax Direction error"? Can you elaborate on that? Did you try to add some extension logic to the DP?

  • MYGz Profile Picture
    2,360 on at

    I'll post the error later as I'm trying something different.

    In the FreeTextInvoiceDP there's a boolean called isTaxAmountVisible and same is there in the Dataset. Where can I set it to Yes? I don't see it's being used in the FreeTextInvoiceDP anywhere. I have selected the field in the report to check.

    pastedimage1638544622746v1.png

  • MYGz Profile Picture
    2,360 on at

    Hello Andre,

    This is the error I'm getting:

    pastedimage1638554356183v1.png

  • Verified answer
    MYGz Profile Picture
    2,360 on at

    This is resolved,

    The error was with model referencing. 1 model was missing in the reference. Fixing which, the tax started calculating.

    More details here:

    community.dynamics.com/.../the-name-taxdirection-does-not-denote-a-class-a-table-or-an-extended-data-type

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 608

#2
André Arnaud de Calavon Profile Picture

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

#3
CP04-islander Profile Picture

CP04-islander 430

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans