Default Location for Production Order

ReinhardReinhard Member Posts: 249
edited 2012-01-16 in Navision Attain
Hello,
Looking for clarification.
On the sales orders and purchase orders, the system will put a default location code in based on the company info and user responsibility center.

I notice that there is nothing like this for production orders, which seems strange.
Is there any reason you see why I wouldn't default production orders to the main location?
- Reinhard

Answers

  • ReinhardReinhard Member Posts: 249
    Hi Alex, thank you for your reply.

    There is no code in the "Production Order" table that assigns a value to "Location Code" except when doing a Source Type of Sales Header.

    On Manufacturing Setup, there is only a field called "Components at Location"

    What I am after is to default the "Location Code" on the Production Order, so that when the user posts using the Production Journal, for example, the system will know where to post the output.

    To be sure, I'm not having a problem, but I was just surprised that the system didn't automatically assign a Location like it did in other areas. I thought maybe I had missed some setup variable... figured I would ask before writing code!

    This is what I have now, onInsert:
    IF "Location Code" = '' THEN
    IF Status <> Status::Finished THEN
    BEGIN
      VALIDATE("Location Code",UserMgt.GetLocation(0,'',''));
    END;
    

    - Reinhard
Sign In or Register to comment.