Close a partially received PO

user123
Member Posts: 22
If there is a situation where you frequently receive less than the PO quantity, is there a way to close the PO?
0
Comments
-
Archive the PO and change the PO "QUantity" to "Quantity Received". You will not be able to receive any more units against that PO.
viewtopic.php?f=23&t=30546Regards,
Deep
India0 -
navuser1 wrote:user123 wrote:If there is a situation where you frequently receive less than the PO quantity, is there a way to close the PO?
close means remove from PO not from the Base Table ??
Close means to remove the PO as it get deleted when the total amount is received and invoiced. The main purpose of this requirement is to prevent open POs getting piled up unnecessarily for stock not to be received for ever..
Thanks0 -
Deep wrote:Archive the PO and change the PO "QUantity" to "Quantity Received". You will not be able to receive any more units against that PO.
viewtopic.php?f=23&t=30546
But still, the PO remains, it will not get deleted as it does when you receive and invoice the total amount..
Thanks0 -
Use "Delete Invoiced Purchase Return Order" report in IT Administration > Data Deletion.Regards,
Deep
India0 -
Ever have an instance where the "Delete Invoice Purchase Orders" doesn't delete the purchase order? I have one client that is having this problem. The Qty is the same as the Qty Received and Qty Invoiced. Nothing is oustanding.
Any ideas?0 -
Mindie wrote:Ever have an instance where the "Delete Invoice Purchase Orders" doesn't delete the purchase order? I have one client that is having this problem. The Qty is the same as the Qty Received and Qty Invoiced. Nothing is oustanding.
Any ideas?
You should debug the Code to get the Reason.Now or Never0 -
Mindie wrote:Ever have an instance where the "Delete Invoice Purchase Orders" doesn't delete the purchase order? I have one client that is having this problem. The Qty is the same as the Qty Received and Qty Invoiced. Nothing is oustanding.
Any ideas?
yes I have seen this often.
The problem is that the code in the "Delete Invoice Purchase Orders" function is not the same as the code used to determine if an order can actually be deleted or not. It done this way to make it a bit faster, but I really would prefer the code to be rewritten so it tests everything the same as in the ondelete triggers. The code does things like filter on a couple of fields and do a find to see if it can delete that sometimes fails, BUT luckily it fails by not deleting, I haven't seen the other way of it deleting something it shouldn't.David Singleton0 -
user123 wrote:If there is a situation where you frequently receive less than the PO quantity, is there a way to close the PO?
After receiving & invoicing the partial quantity, archieve the PO and delete the PO from pending PO list.
Praveen0 -
I found a hotfix for the problem. I changed a couple lines of code and now it is working correctly.0
-
Mindie wrote:I found a hotfix for the problem. I changed a couple lines of code and now it is working correctly.
Can you please post the code here, (if its just a few lines) and a link to the KB. It will be of use to help those that have helped you.David Singleton0 -
Sure
Here's the link: https://mbs.microsoft.com/knowledgebase ... OQRZLRXVOU
Here's the change:
To apply this hotfix, change the code in the Purchase Header - OnAfterGetRecord() trigger in the Delete Invoiced Purch. Orders report (499) as follows.
Existing code
...
IF PurchLine.FIND('-') THEN
REPEAT
PurchLine.CALCFIELDS("Qty. Assigned");
IF ((PurchLine."Qty. Assigned" = PurchLine."Quantity Invoiced") OR
// Delete the following lines.
(PurchLine.Type <> PurchLine.Type::"Charge (Item)")) AND
(PurchLine."Qty. Assigned" <> 0)
THEN BEGIN
...
Replacement code
...
IF PurchLine.FIND('-') THEN
REPEAT
PurchLine.CALCFIELDS("Qty. Assigned");
// Modify the following line.
IF ((PurchLine."Qty. Assigned" = PurchLine."Quantity Invoiced") AND
// Add the following lines.
(PurchLine."Qty. Assigned" <> 0)) OR
(PurchLine.Type <> PurchLine.Type::"Charge (Item)")
THEN BEGIN
...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
- 322 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