Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Default location code Vendor - Purchase order line

(0) ShareShare
ReportReport
Posted on by 45

Hi,

I am trying to practise default locations in NAV 2017

These are the priorities according to NAV theory.

1st priority - Customer / Vendor Card
2nd priority - Responsibility Center Card
3rd priority - Company Information Card

My example:

Vendor 10000 Location code: Yellow and Responsibility center: Copenhagen (Location Red)

Company information: Blue 

Inventory setup; Location Mandatory: No

Now I create a purchase order to Vendor 10000 and see location Code: Red in header. Why is that? What am I missing? According to theory I should inherit location code from 

Vendor Card and not location from Responsibility center.

Please advice.

*This post is locked for comments

  • 4BzSoftware Profile Picture
    6,073 on at
    RE: Default location code Vendor - Purchase order line

    Hi Black Diamond,

    You're welcome, and thanks for your information!

  • Verified answer
    Blackdiamond Profile Picture
    45 on at
    RE: Default location code Vendor - Purchase order line

    Hi Khoa Nguyen,

    Thanks for your response I have tried different sceneries to solve this issue including what you suggested before I posted my concern.

    I have now realized after consolidated with one of my senior developer, that it is a code thing in NAV 2017 CU 10 Tabel 38.

    If you create a purchase order from Purchase orders window page 9307 it won't work. If you create purchase order from Vendor list page 27, then it will work.

    This is the only information I could get from the Developer.

    Thanks for your help

  • Suggested answer
    4BzSoftware Profile Picture
    6,073 on at
    RE: Default location code Vendor - Purchase order line

    Hi Black Diamond,

    It seems that system took Location from Responsibility Center (RC) over Location Code on Vendor master data. Did you try to change to another RC (with different Location from Red)?

    Debug may help you find out. I think it is in "Buy-from Vendor No. - OnValidate()" trigger.

  • Blackdiamond Profile Picture
    45 on at
    RE: Default location code Vendor - Purchase order line

    Anyone?

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans