web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Purchase Orders that won't delete due to ‘Qty. Rcd. Not Invoiced’ stalemate

(1) ShareShare
ReportReport
Posted on by 891
I believe I’ve discovered why some Purchase Orders can’t be deleted in BC. It boils down to 2 fields in the Purchase Order detail line: ‘Quantity Received’ & ‘Quantity Invoiced’ and the rule:
‘Quantity Received’ - ‘Quantity Invoiced’ must equal zero.


A possible sequence of events is as follows:
  1. Purchase Order raised.
  2. Goods received from Vendor.
  3. Post action launched in Purchase Order page and Receive chosen at dialog below.
  4. Posted Purchase Receipt created, which has P/O No. raised above in its Order No. field (see below):
  5. Also, field ‘Quantity Received’ value in the Purchase Order line record auto-incremented to 1. Field ‘Quantity Invoiced’ remains unassigned (or zero).
  6. For whatever reason, no invoice is created possibly because the customer decides they don’t want to go ahead.
  7. An attempt is made to delete the no longer required Purchase Order and the error below is encountered. Field ‘Qty. Rcd. Not Invoiced’ contains the result of: ‘Quantity Received’ - ‘Quantity Invoiced’. Stalemate reached.
My question is: What is the text book solution to this? I could write some custom code to force a delete of the P/O, but that would leave a Posted Purchase Receipt pointing at a order that doesn't exist anymore.
 

 
 
I have the same question (0)
  • Verified answer
    Yi Yong Profile Picture
    2,563 Super User 2025 Season 2 on at
    Hello,
     
    On point#6 where you mentioned no invoice is created possibly because the customer decides they don't want to go ahead.
    Are you doing drop shipment?
     
    The straightforward way is to run the Undo function on the posted purchase receipt to 'return' the item to the vendor and delete the purchase order.
     
    You can post an invoice with 0 direct cost to close the order if you don't need to return the item to the vendor.
     
    You should not write code to force delete the PO because there will be cost issues.
    On item ledger entry & value entry, the items are still recorded as 'expected' cost instead of 'actual' cost.
    It will be complicated to cater for these ledger entries through writing code.
  • Suggested answer
    Ben Baxter Profile Picture
    6,620 Super User 2025 Season 2 on at
    I agree with Yi on this.  If you have received product from the Vendor, they are going to expect payment.  The Vendor is likely going to send you an invoice for that product.  As mentioned, if you are going to return the product to the Vendor, then you would either create a Purchase Return Order (paper trail), or simply undo Receipt and send it back without the paper trail.
     
    To clear up your assumption, it is not simply "Quantity Received - Quantity Invoiced" that determines if a PO can be closed.  It is Quantity = Quantity Received = Quantity Invoiced.  All three fields must match for the PO to be deleted, which will happen automatically by the system if posting the Invoice from the Purchase Order.  If you post the Invoice from a Purchase Invoice linked to the Purchase Receipt, then there is a secondary process to clear fully Received/Invoiced Purchase Orders (which can be run via a Job Queue).
     
    I would strongly encourage you to avoid writing extensions until you know more about the base functionality of the software.  As mentioned, you would have a created a negative impact on the costing of your system.
     
    Best Regards,
    Ben Baxter
    Accent Software Inc
  • Suggested answer
    Jun Wang Profile Picture
    8,202 Super User 2025 Season 2 on at
    Not sure why you want to delete the document. Depending on how your location setup, and how the PO has been processed, you need to reverse the transaction accordingly. There are different ways per previous suggestions to properly reverse a PO. I've also seen quite a few cases where user tried to fix such issues via codes, and causing bigger issues later on. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans