This is what my customer is asking:
She makes orders and wants to archive every order before she posts them. Then she wants to be able to view the archived orders (report 405) even if they have been posted, or not.
From Purchases and Payables-> Order...she makes and order
then she chooses Function-> Archive Document.
Then she may or may not post this.
How can I make it so that she can view always her archived documents? I know of form 5167 Purchase Order Archive... I don't know how to make a document print from that form.
Please help...
0
Comments
RIS Plus, LLC
I have been trying this for 3 days now... I don't know what else to look at...
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
One question... the Purchase line table has a whole lot of functions... do I need to make these functions in the Purchase line archive table?
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
Your best best would be to turn on the debugger and run the report, step through all the code and see where you expect it to get the right records, but it doesn't.
There's probably a variable in the report of the type 'Purchase Line" that needs to be set to the archive line and the document type filter taken off, something like that.
Dont give up dude, this is the fun stuff!!! 8)
RIS Plus, LLC
:-k
http://www.BiloBeauty.com
http://www.autismspeaks.org
PurchLine.CalcVATAmountLines(0,"Purchase
Header",PurchArchLine,VATAmountLine);
PurchLine.UpdateVATOnLines(0,"Purchase Header ",PurchLine,VATAmountLine);
These are functions that are in the Purchase Line table... do I need to add the functions also to the Purchase Line archive table? Otherwise, the report wont run...
If I'm not mistaken, these functions are meant to fill temporary tables for printing VAT lines on the report. So, you do no harm adding these functions to the archive-tables.
If you don't need VAT on the report, I would just delete the VAT-part of the report, including these function calls.
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
any other suggestions?
Why do you want to use a report for that?
I have done the same functionality by adding to the main menu a link to the form "Purchase Order Archive" or "Sales Order Archive" for sales...
"Why print when you can see it on screen?"
Arhontis
https://forum.mibuso.com/search
Personally, I think the default functionality is:
when you want to print the order from the archive, first restore it as an order (an archived one is not an actual order), then print it.
:-k
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
I am able to view the purchase line archive lines... but have one problem with this...
In the roundloop section of the report it has PurchLine.DELETEALL;
and in the copyloop section the same thing...
I made them into PurchLineArch.DELETEALL;
However, this deletes the lines, and nothing can be viewed... if I comment these two out, then it prints each line twice, and continues to print from other orders, etc.
Any ideas?
:?
Also, don't do a DELETEALL in your report, that removes your archived data and you wont be able to report them again. Just remove those functions from your archive report and display the values. Remeber this is a report to only display historical data, so you dont need to recalculate anything, and you dont need to create/modify any records either. All you need to do is display what is in the table.
RIS Plus, LLC
Don't know what's happening...