I’m not going into in detail about the customization. I’m stuck at one point and seeking your help. My need is, I need to AUTO populate the serial number on the sales order item tracking lines form equals to “Sales Order#-Line#” whenever user clicks on the sales order -> Line – Item tracking lines. In which codeunit I can write the code to achieve this?
Sales Line-Reserve, Item Tracking Management,….?
For example, if the sales order is SO1234 and the line number is 10000, the serial number should be populated as SO1234-10000 when user clicks on Sales order -> Line -> Item Tracking Lines
0
Comments
Why don't just use "Create Customized SN" function?
Andwian
We use Item tracking serial number for the inbound items. If we go indetail, we use kit functionality. As part of the build Kit process on sales order, we need to assign the serial number manually for the kit item. We wanted to automate it by auto populating the serial number as Order No-Line No.
Andwian
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
In our scenario, each sales line contains only one quantity. When user opens up a Item tracking line form, we should auto populate the serial no as Order No. – Line No. And, user may modify the serial no if needed. When user opens up the item tracking form again, it should show the last modified serial no.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
This works for purchase lines. You've to play with tableno, doctype, quantities etc. in order to make it work for the sales lines, too.
And good luck, as kine said, it's a pain to modify this functionality and i hope this is the only customization you need
I know the code is a bit dirty with prefixes etc, but i hope that the names of the variables are understandable. Otherwise, just ask me and i'll provide you the list.
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
CreateReservEntry.CreateReservEntryFor(...
CreateReservEntry.CreateEntry(...
Where CreateReservEntry is Codeunit 99000830. When doing it through code I recommend creating one manually and one via code then comparing the reservation entries directly. It's really easy to miss something.