Hello Guys,
I need a little advice from experts.Actually I am doing a process ,i.e,creating a production order from a Sales Order from a Location Code e.g Test 1 and Quantity 20.
The Production Order was created successfully ,the problem is when I go to the Output Journal,I want to split the the Production order No. so that I can distribute quantity to 2 different location code instead of one.(when this is done directly from the Production Oder directly it works.)But in this scenario at the time of Posting I get an error saying about the location code.
I investigated and found that there are 2 validation in two codeunits,
The first Codeunit is Prod.Order Line-Reserve,where the code is NewItemJnlLine.TestField("Location Code","OldProdOrderLine.Location Code");
And the 2nd Codeunit is ItemJnl.Line-Reserve
Oldresventry.TESTFIELD("Location Code",ItemJnline.Location Code);
On a Test database ,I commented these 2 codes and the posting was successful.
My questions are why the posting is not allowed ?
If I comment these standard code are there major implications?
Any suggestion how I could resolve this problem?
Thanks for paying attention.
0
Comments
But try it out and let us know your test results!
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
We always use separate production orders for different location codes, even though they may be for the same item.