Archive fully received and invoiced orders: Where is code?

txeriff
Member Posts: 515
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.
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
-
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
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
-
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.
0 -
> @txeriff said:
> 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”0 -
sorenhinrup wrote: »> @txeriff said:
> 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.
0 -
sorenhinrup wrote: »> @txeriff said:
> 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.
0 -
sorenhinrup wrote: »sorenhinrup wrote: »> @txeriff said:
> 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.
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions