generating tracking lines from code

mrQQmrQQ Member Posts: 239
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.

Comments

Sign In or Register to comment.