Default location code Vendor - Purchase order line

BlackdiamondBlackdiamond Member Posts: 29
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.

Best Answer

  • BlackdiamondBlackdiamond Member Posts: 29
    edited 2018-06-05 Answer ✓
    @Kishorm - I tried to debug but it is advance for me since I am not a developer.

    After consolidating with a senior consultant I did following:

    If I create purchase order from Purchase order window page 9307, then the correct location code from vendor won't appear. I could see the value from Vendor card is there but during the process it is "null".

    If I create purchase order from Vendor List page 27, then it works perfectly.

    It seems like Microsoft have a bug in their code. I am using NAV 2017 CU10.

Answers

  • BlackdiamondBlackdiamond Member Posts: 29
    Anyone
  • KishormKishorm Member Posts: 921
    It could be caused by some bespoke code added. Best way to find out why this is happening is to put a breakpoint on the "Location Code" OnValidate on Table 38 "Purchase Header" and then create a new Purchase Order with the debugger activated - then you'll be able to see at what point it's being set to RED.
  • BlackdiamondBlackdiamond Member Posts: 29
    edited 2018-06-05 Answer ✓
    @Kishorm - I tried to debug but it is advance for me since I am not a developer.

    After consolidating with a senior consultant I did following:

    If I create purchase order from Purchase order window page 9307, then the correct location code from vendor won't appear. I could see the value from Vendor card is there but during the process it is "null".

    If I create purchase order from Vendor List page 27, then it works perfectly.

    It seems like Microsoft have a bug in their code. I am using NAV 2017 CU10.
Sign In or Register to comment.