Hello fellow NAV developers.
I don't know about you, but I personally find, that quite often I need to be able to insert item tracking lines for documents (sales, purchase, transfer orders for example) from code.
There are two most obvious choices:
1. Insert Reservation Entries manually
2. Use Item Tracking Lines form, retrieve fully filled tracking spec from it, update it, pass it by, and have it write the spec to DB.
1. I don't like, because you can never know what might change, and you can never be sure you fill out reservation entries properly.
2. I don't like, because it involves using a form (doesnt run under NAS), and is very slow. Though it should be robust and would use the same logic that manual entry uses.
Has anyone of you found any useful functions that might help me out? I have found some functions to retrieve a properly filled tracking spec, but none to write it back..
Thanks for any suggestions.
0
Comments
I have had the same dilemma and have gone with option 1. The amount of code that is required to mimic option 2 is frightening so I stick with option 1 but only at posting so the reservation ently is cleared with the post.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
This came up fairly easily and is a nice and third solution
http://www.mibuso.com/forum/viewtopic.p ... m+tracking