Indian Tax Calculation in Ax 2012 R2

Hi Dynamics,

I have done development for export sales orders, I have created new fields taxItemGroup, Tax Group, net Amount, these fields are different than the SO fields.

I need to calculate Tax based on my new fields. Let me know any classes we can use the calculate the Tax.

Thanks in advance if any ideas…

Tax is the basis class where all the caculation of tax will be happened.

Yes The Tax and TaxCalculation are the base classes for all taxes calculations.

Tax::calcTaxAmount(exportARETrans.ARETaxGroup, exportARETrans.areTaxItemGroup, Systemdateget(), “INR”, exportARETrans.areLineAmount, TaxModuleType::Sales);

This method will calculate tax but i need to to calculate tax consider with FormulaDesigner , Customs and Exise also.

but I can’t understand how to use those classes for calculate our own fields.

Mahesh,

have a quick look at the classes starting Delivery***…

These classes are used to calculate taxes for brazil taxes and they have two separate tax fields(same as yours) in the salesline or I think they have extension tables.

You can also check on the salestable form to know how it is called

You can leverage same to achieve yours.

Regards

Shon

Thanks for your suggestion Shon,

I have checked those classes, The calculation for Brazil TaxGroup and ItemTaxGroup but they have used Line amount, qty and Tables are same which has been used in normal sales tax calculation.

I need to calculate Tax for new customized Tables and Fields.

Mahesh,

That’s right it only replaces the tax fields and rest everything comes from the Salesline table,

but as a best practice what you need to do is to develop same tax model classes and replace the fields/tables with yours and call it .

Also you may also need to replace the totals form calculation by your custom fields .

So its always better to develop custom classes rather customizing the standard classes.

You can also check the class TaxSales ->Configuretaxforsalesline method.