web
You’re offline. This is a read only version of the page.
close
Skip to main content
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,059

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
    299,349 Super User 2025 Season 2 on at
    RE: Print Sales Tax Code and Sales Tax Amount in the Lines in Free Text Invoice

    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,059 on at
    RE: Print Sales Tax Code and Sales Tax Amount in the Lines in Free Text Invoice

    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
    299,349 Super User 2025 Season 2 on at
    RE: Print Sales Tax Code and Sales Tax Amount in the Lines in Free Text Invoice

    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,059 on at
    RE: Print Sales Tax Code and Sales Tax Amount in the Lines in Free Text Invoice

    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,059 on at
    RE: Print Sales Tax Code and Sales Tax Amount in the Lines in Free Text Invoice

    Hello Andre,

    This is the error I'm getting:

    pastedimage1638554356183v1.png

  • Verified answer
    MYGz Profile Picture
    2,059 on at
    RE: Print Sales Tax Code and Sales Tax Amount in the Lines in Free Text Invoice

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,100

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 633 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans