A while back we created a field called "Created by" on the Sales Header table in the 50000 range. I recently created a field of the same name in the Sales Invoice Header table. In our test environment I posted a Sales Order. The value in the "Created by" field didn't pass over. I was once told by a NAV consultant that if the field names match between document tables and posted tables, the value will pass through during posting. I thought I had confirmed this at my old company on 3.7, but it's not working on 5.0 at my new company.
Can someone please advise me on this... should it be passing through? If not, what's the cleanest way to accomplish this (I imagine I have to modify a Codeunit)...
Thanks
-Doug
0
Comments
So if I had "Created by" field # 50083 in sales header i would also use 50083 in posted sales invoice & Posted Shipment Header too.
http://www.BiloBeauty.com
http://www.autismspeaks.org
From the on-line help:
The field numbers must match in the two tables, and the field types and length must be the same as well.
Then u must nothing more change. In the CU 80 is a transferfield used to transfer the fields from the header to the posted header. So, you need no code modifications. If you doesn't need the field in the tables 110,114 and 6660 and only in tabe 112, you should let this "Field No." free in these table to avoid problems in the future (like the transferfield can't work because there is a Data Type problem (Text to int for example).
A tip: If u use the "Archive" for the Sales Documents (Order, Quote) u should also copy this field there. So, if you restore a archived document, this field is also stored and restored.
Regards