Home > X++ stuffs > SalesTaxGroup Defaulting Issue in AIF 2009

SalesTaxGroup Defaulting Issue in AIF 2009

 

I have seen a strange behaviour in AX 2009. While processing vendor records via AIF the corresponding sales tax group doesn’t default in the vendor master. VendGroup master table has default tax group setup done as shown

 When “Vend Group” is passed via Xml accordingly the related fields needs to get defaulted. Screenshot on the same is shown. 

Reason: There is no defaulting logic implemented in the setTaxGroup () method in the AxVendTable class.

Solution: The setTaxGroup () method needs to implemented with the following logic after isMethodExecuted called.

The setTaxGroup () method needs to implemented with the following logic after isMethodExecuted called.

//Checks if VendGroup is provided in Xml.

//If no VendGroup then it throws error stating mandatory field missing.

this.setVendGroupFields ();

 

                //Checks if <VendGroup> field is set in the Xml

                //And check if the vendor group master has TaxGroupId defined for it.

If (this.isFieldSet (fieldnum (VendTable, VendGroup)) &&

                                this.vendGroupRecord ().TaxGroupId)

                {

                                this.parmTaxGroup (this.vendGroupRecord ().TaxGroupId);

                }

 

With the following piece of code the sales tax group will be defaulted in the vendor master details.  Even Customer master has similar issue and i assume Microsoft would either release a hot fix for AX2009/resolve the bug in vNextSmile

Advertisements
Categories: X++ stuffs
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: