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 :
Supply chain | Supply Chain Management, Commerce
Answered

How to calculate tax for ProjectInvoiceReport?

(0) ShareShare
ReportReport
Posted on by

I need to calculate tax for ProjectInvoiceReport.

I calculated the tax for sales invoice as follows;

tmpTable.Vatamount = Tax::calcTaxAmount(CustInvoiceTrans.TaxGroup, CustInvoiceTrans.TaxItemGroup, CustInvoiceTrans.InvoiceDate,
CustInvoiceTrans.CurrencyCode, CustInvoiceTrans.LineAmount, TaxModuleType::SalesInvoice);
Is there any method or technique to calculate the tax easily for ProjectInvoiceReport?
I have the same question (0)
  • Verified answer
    WillWU Profile Picture
    22,361 on at
    RE: How to calculate tax for ProjectInvoiceReport?

    Hi Ashraf_hk,

    Please check the following code to calculate tax for project invoice:

       static void projectinvoiceTax(Args _args)
        {
            ProjInvoiceJour         projInvoiceJour;
            TmpTaxWorkTrans         taxWorkTrans;
            ProjProposalTotals      ProjProposalTotals;
            TaxTable                taxTable;
            tax                     tax;
     
            projInvoiceJour     = ProjInvoiceJour::findRecId(projInvoiceJour.recid); 
            ProjProposalTotals  = new  ProjProposalTotals(ProjProposaljour::find( projInvoiceJour.ProposalId));
            ProjProposalTotals.calc();
            tax = ProjProposalTotals.tax();
       
            taxWorkTrans.setTmpData(tax.tmpTaxWorkTrans());
            while select taxWorkTrans
            join taxTable
            where taxTable.taxcode == taxWorkTrans.taxcode
            {
                info (strFmt('%1  %2 %3', taxWorkTrans.TaxCode, taxTable.showTaxValue(), taxWorkTrans.TaxAmount));
    
            }
     
        }

  • Community Member Profile Picture
    on at
    RE: How to calculate tax for ProjectInvoiceReport?

    while select * from taxTrans where taxTrans.Voucher == projectInvoiceJour.LedgerVoucher && taxTrans.TransDate == projectInvoiceJour.InvoiceDate

               {

                         tax  = abs(taxTrans.SourceTaxAmountCur);

               }

  • Community member Profile Picture
    2 on at
    How to calculate tax for ProjectInvoiceReport?
    is it line level tax ? i need to know how to calculate line level tax.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Siv Sagar Profile Picture

Siv Sagar 279 Super User 2025 Season 2

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 223

#3
Danny Bilodeau Profile Picture

Danny Bilodeau 214 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans