Do not delete Purchase Order after Receive And Invoice(Post)

upasanisandip
Member Posts: 405
Hi,
I do not want to delete the purchase order after posting (receive & invoice).
How can I do that.
Pl. suggest the solution if anyone knows
thanks.
I do not want to delete the purchase order after posting (receive & invoice).
How can I do that.
Pl. suggest the solution if anyone knows
thanks.
0
Comments
-
Why not? And are you sure that is the design you want?0
-
Hi Mbad,
Do you know where is the code for deleting of Purchase Header & Purchaes Line is present?
thanks0 -
For the header it is in codeunit 90, the delete near the end of onrun. For the lines it is 6 lines lower(purchline.deleteall)0
-
There is sales/purch document archives(from posting), but i dont know how they are set up. Ask a consultant. (table 5100ish)0
-
Yes, it's better to archive. In that way you don't want standard behaviour of Navision and you can keep history. Archive Order before posting.0
-
The purchase orders are not deleted if use post the receipt first, then use the Get Receipt Line function from the purchase invoice.
Before the Archive functionality came out, this was a requirement for some companies we implemented. Essentially, just seach on the .DELETE in codeunit 90 and you'll find what you're looking for.
However, like the other users on this thread suggested, using Archive is a much better alternative.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
you could always use the copy document functionality to recreate a posted po.0
-
You can also archive on release of the purchase document and put a code in codeunit 90 to block posting of PO if the user has not released the document. Create a new form to show the archived P.O.'s.CA Sandeep Singla
http://ssdynamics.co.in0 -
Savatage wrote:you could always use the copy document functionality to recreate a posted po.
But this won't duplicate the exact PO if there are partial receipts or invoices.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
You do not want to keep history in the active purchase order tables. This WILL cause serious performance problems. You are MUCH better off purchasing the archiving granules, and automating that process.0
-
Some time the completed PO cannot be deleted for reporting purposes.
Otherwise many tables have to be linked back & this report becomes extremely complex.NAV - Norton Anti Virus
ERP Consultant (not just Navision) & Navision challenger0
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