I have been working on additional functionality to the 'copy document' functionality within 3.6 in the below thread.
http://www.mibuso.com/forum/viewtopic.php?t=7661
I have got this sorted with some good help.
My questions kind of follows on from that above.
Each quote within my system has footer comments that can be can be printed at the bottom of the quote. This works well.
I created a new table for this with the following fields:
Language, Document No., Type, Line No. and description
When I use the copy quote functionality I would like to copy the footer comments over to the new quote. I am relativly new to Navision and I am not sure what I need to look at within Navision to get me started on doing this. Could someone point me in the right direction please.
Give a man a fish and he will eat for a day, teach a man to fish and he will drink beer allday.
Answers
Codeunit 6620
Look for this section of code
Put a new function to copy your table at NEWFUNCTIONHERE.
Having no development documentation and just the help within navision for cside is a little limiting.
In this case I think you can.
It would be like the copysaleslines function within this code unit I guess
Just keep it as basic as possible if it is just customisation.
I created two local record variables to the CopySalesDoc function; ToFooter & FromFooter
There is a case statement, which at the very top defines several conditions
As you can see I commented out the Quote one and I created a new statement at the end solely for Quote:
The main thing I tried to do is at the bottom of the quote case statement. This is where I attempted to create the copying of the comment lines, it does not seem to work. Nothing seems to happen at all.
Could you point out what I have attempted to do wrong please. To be honest I thought I had done it right.
But I now get the following error:
The Header / Footer already exists
Identification and values:
Table='Quote',Language Code='',Document No.='SQ06898',Type='Footer Notes',Line No.='1000'
I added the insert at the end of the statements for this seem to be the only way it seem to try and work:
Any thoughts?
Jim