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

Notifications

Announcements

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,295

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)
  • Verified answer
    MYGz Profile Picture
    2,295 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

  • MYGz Profile Picture
    2,295 on at

    Hello Andre,

    This is the error I'm getting:

    pastedimage1638554356183v1.png

  • MYGz Profile Picture
    2,295 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

  • André Arnaud de Calavon Profile Picture
    302,035 Super User 2025 Season 2 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,295 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);

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    302,035 Super User 2025 Season 2 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.

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…

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
Abhilash Warrier Profile Picture

Abhilash Warrier 843 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 320 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans