Hi mates.
Does any1 know where NAV does this in the code? I mean if you´ve got "Archive Quotes and Orders" in tablee 312 enabled, I can´t find in the code where does the archive.
I see on delete trigger does some deletion but I dont see where it does such archive.
0
Answers
Codeunit - 80
IF Ship OR Receive THEN
ArchiveUnpostedOrder(SalesHeader);
GO Inside the above function in Codeunit 80 only, you will find
ArchiveManagement.ArchSalesDocumentNoConfirm(SalesHeader);
Go Inside this function (Codeunit 5063 is called)
StoreSalesDocument(SalesHeader,FALSE);
This functions stores the information in Archival Tables.
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
http://www.g-d-t.de/download.htm
Thanks for your response. I already found that before but I as far as I know NAV gets rid of the order if fully received and invoiced, that code will run only if ship/receive.
I wanted to know where it decides to get rid of it. Some mates also told me you have to receive & invoice from the order screen otherwise it won´t get rid of it (if you invoice shipment/receipt won´t work)
Maybe I´m mistaken.
thanks.
> RockWithNAV wrote: »
>
> If I talk about Sales Order then here is the Sequence. I assume you have enabled archival in Sales & Receivable setup.
>
> Codeunit - 80
>
> IF Ship OR Receive THEN
> ArchiveUnpostedOrder(SalesHeader);
>
> GO Inside the above function in Codeunit 80 only, you will find
>
> ArchiveManagement.ArchSalesDocumentNoConfirm(SalesHeader);
>
> Go Inside this function (Codeunit 5063 is called)
>
> StoreSalesDocument(SalesHeader,FALSE);
>
> This functions stores the information in Archival Tables.
>
>
>
>
>
>
>
> Thanks for your response. I already found that before but I as far as I know NAV gets rid of the order if fully received and invoiced, that code will run only if ship/receive.
> I wanted to know where it decides to get rid of it. Some mates also told me you have to receive & invoice from the order screen otherwise it won´t get rid of it (if you invoice shipment/receipt won´t work)
> Maybe I´m mistaken.
>
> thanks.
The fully invoiced order is deleted when it’s posted from the sales order page.
If you invoice through the combined posting function, then you are correct, the order remains. But NAV has a standard report that deletes full invoiced orders, report 399 “delete completely invoiced orders”
I just wanted to know where it decides to delete order if invoice and receive from order, where in the code triggers. I know about that report.
At the end I had to call that report with order number, find out from invoice receipt and pass to it and let it decide if it´s time to delete.
there is not such function.