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?