Hi, don’t make a new order, you can’t link it to the old receipt anyway. Make a Purchase Invoice for the same vendor and on the lines use Get Receipt Lines, it shows posted receipt lines that are received but not invoiced, pick yours and post. The invoice is matched to the receipt and the item ledger entries get their real cost.
Since the items are already sold, run Adjust Cost - Item Entries after posting, so the COGS on the sales follows the invoiced price if it’s different from the receipt cost.
One thing, I’m not 100% sure the posting goes clean when the original order doesn’t exist anymore, I would try it in a sandbox copy first. Also curious how the order was deleted, normally BC doesn’t let you delete an order with received not invoiced quantity so easy. Is there some customization or did someone use Delete Invoiced Purchase Orders.
► If this solved it, marking it verified helps others too.
Regards,
Grigorios Mavrogeorgis
Business Central Consultant & AL Developer
Work: Gmsoft Limited
Blog: insidebusinesscentral
LinkedIn: linkedin.com/in/gregorymavrogeorgis