Hi,
I was trying to find out how I can manage to copy the Contact Address details (Address1, Address2, etc) to Bill-to Address details on Sales Order.
Since when Contact No. is modified on the SO, the "Bill-to Name" changes using the Contact Name assigned on the Contact No, I thought that it should be very easy copying all other information by adding extra codes next to the copy function in "Contact".
But as I was reviewing the NAV 2009 SP1 codes, I couldn't find the code that was handling the copy function.
Maybe I'm not looking at the right place...
If you could point me to the right direction as to where to look for the codes, and how to update it, I would greatly appreciate it.
Thank you.
Kenji
0
Comments
Bill-to Contact No. - OnValidate()
.....
Andwian
"Bill-To Contact No." ONVALIDATE trigger (as he mentioned). The "UpdateBillToCust" function's code is here:
You can see that it would be relatively easy to copy the Contact Address details to the Bill-to address details on the order - in fact, it is already done when the order is type "Quote". So you could change one line of code above from to
I'm not sure that's the exact functionality you are looking for, but hopefully it will point you in the right direction.