Skip to main content

Notifications

Business Central forum
Suggested answer

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

Posted on by 659
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.
 

 
 
Categories:
  • Suggested answer
    Yi Yong Profile Picture
    Yi Yong 664 Super User 2024 Season 2 on at
    Purchase Orders that won't delete due to ‘Qty. Rcd. Not Invoiced’ stalemate
    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.

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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,445 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,334 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans