web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AP Vendor Details: VAT Number not always mandatory

(0) ShareShare
ReportReport
Posted on by 90

Hi all,

We have the issue that on the vendor details in AP the VAT Number should for some organizations be mandatory for the others not.

We were expecting that this is automatically going to happen, when we set the VAT number requirement on the General tab under AP - Setup - Parameters to either none or Domestic + EU Member States, but unfortunately it's not working.

Does somebdoy now another way to resolve this without customization?

Thanks,
Damian

*This post is locked for comments

I have the same question (0)
  • Weaveriski Profile Picture
    23,618 Moderator on at

    This will work. I would hazard a guess that you are either not specifying an address (the validation is triggered by the country code) or your country code setup is incorrect, Have a look at the country code where it is not working and ensure the Country/Region type is set correctly (EU or Domestic).

  • Damian Crettaz Profile Picture
    90 on at

    By testing I create a new vendor under vendor details and set at least the country on the address tab, but still during saving process it's not asking me to put the VAT number.

    I checked the setup of Country/Region and it's set to Domestic, which is correct. On the AP parameters  on the General Tab the VAT number requirement within the vendor section is set to Domestic + EU Member States. Any other idea what the issues could be?

  • Verified answer
    Community Member Profile Picture
    on at

    Hi Damian, The functionality under the AP parameters is working, but requires a primary vendor address including Country to be setup on the vendor basic data. So, you need to setup a primary vendor address. Than based on the country filled in AX will check for VAT number requirement.

    On the Country/Region form, found under Basis - Setup - Addresses, you can set the type of country (Domestic, EU, Third countries).

    Hopefully this will help you.

    Kind regards,

    Dennis

  • Damian Crettaz Profile Picture
    90 on at

    Hi Dennis,

    Great this did work, now I just need to check what possibilities I have to deafult the primary flag, any idea? I need it as otherwise the users will forget to set it and then the functionality will useless.

    Thannks a lot,

    Damian

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Damian,

    I think with some small code change you will be able to mark the first created record tied to the Vendor (or Customer) as Primary. The problem is that you can have one Primary address. An alternative could be that you create a check in the form that if the user if leaving the form, at least one address marked Primary should be created. You can extend that check, so that AX also check for a valid Country/Region value (not empty) for the primay address. Thirdly you could opt for making the Country/Region field on the VendTable mandatory. AX will give an error if the countryregion is not filled in. You should instruct your users that if they get this message they would need to fill in a primary address (this is the smallest change).

    The check for VAT number has been in the system for ages, but due to the Address book functionality as from AX2009, it now requires the Primary Address field set to Yes (undocumented feature :)) . Setting the Primary Address field to Yes it triggers AX to copy address fields to the VendTable record. This is very important since also Sales Tax and Intrastat are depended on a valid Country/Region value on the VendTable (or CustTable).

    In the old days, the address was registrered directly on the VendTable record.

    Kind Regards,

    Dennis

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans