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 :
Microsoft Dynamics AX (Archived)

Separation of Tax codes and Tax Values

(0) ShareShare
ReportReport
Posted on by

Hi All,

         I Have a Developed a New SSRS Report in Account Receivable Module For a Particular Sales Invoice I Need To Print The Tax Codes With Values.

Please Help me

Thanks 

Rajesh

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Separation of Tax codes and Tax Values

    Hi Rajesh,

    I didn't understand your question clearly, 

    your created report using by Query or Dp class?

    tax values and codes will fetch from TaxTrans Table.

    Thanks,

  • André Arnaud de Calavon Profile Picture
    299,349 Super User 2025 Season 2 on at
    RE: Separation of Tax codes and Tax Values

    Hi Raj,

    The default invoice report is looking at form settings. Go to Accounts receivable > Setup > Forms > Form setup. The field who manages this is called 'Sales tax specification'.

  • Community Member Profile Picture
    on at
    RE: Separation of Tax codes and Tax Values

    Hi Andre,

      I want to print the tax values based on tax codes for a particular sales invoice.

    kind regards,

    Rajesh

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Separation of Tax codes and Tax Values

    Hi Raj,

    For a single SalesId may have mutliple Invoices  In (CustInvoiceJour).InvoiceId.

    here is the sample code for to get the tax code and tax values.

    while select taxTrans
                where taxTrans.Voucher == custInvoiceJour.LedgerVoucher
                && taxTrans.InventTransId   ==  custInvoiceTrans.InventTransId

    Please try this code to get Tax related Information.

    This is just a suggestion.

    Thanks,

  • Community Member Profile Picture
    on at
    RE: Separation of Tax codes and Tax Values

    Hi Suresh,

        can you please share the sample code for to split the tax code and tax values.

        i want to show each and every tax code in a separate columns in the SSRS Report.

    kind regards,

    Rajesh

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Separation of Tax codes and Tax Values

    Hi Raj,

    Please try this code for your report, it may work for you.


        salesReqTmp.VATTaxCode      =   "";
        salesReqTmp.VATAmount      =   0;
        salesReqTmp.CSTTaxcode      =   "";
        salesReqTmp.CSTTaxAmount    =   0;
     
            while select taxTrans
                where taxTrans.Voucher == custInvoiceJour.LedgerVoucher
                && taxTrans.InventTransId   ==  custInvoiceTrans.InventTransId
            {
               
                if(taxTrans.TaxCode like "VAT*")
                {
                    salesReqTmp.VATTaxCode    =   taxTrans.TaxCode;
                    salesReqTmp.VATAmount     =   this.amountCur(taxTrans);
                }
                if(taxTrans.TaxCode like "CST*")
                {
                    salesReqTmp.CSTTaxcode    =   taxTrans.TaxCode;
                    salesReqTmp.CSTTaxAmount     =   this.amountCur(Taxtrans);
                }
            }

    This is just a sugestion,

    Thanks,

  • Community Member Profile Picture
    on at
    RE: Separation of Tax codes and Tax Values

    Hi Suresh,

          tax values are splitting separately for particular invoice ID i am able to generate with tax codes and tax values.

           thanks for your help.

    kind regards,

    Rajesh

  • Community Member Profile Picture
    on at
    RE: Separation of Tax codes and Tax Values

    Hi Andre,

       thanks for suggesting me.

    kind regards,

    Rajesh

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
NNaumenko Profile Picture

NNaumenko 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans