
At some time in the past, someone created a Purchase Order with an Item and Charge Item for Purchasing Taxes. The Item has been posted. The taxes were never billed to us. If I try to delete the tax line, I get this message: "Cannot delete line item: Qty Recd. Not Invoiced must be 0 in Purchase Line Document Type='Order'." I tried changing the amount to zero, but it says I must assign all charges. However I cannot assign the charges because the main item is already invoices. How do I get rid of this old PO now?
*This post is locked for comments
I have the same question (0)Hi Janna,
I'm afraid this isn't resolvable without additional coding. We had similar issues with "creatively" posted orders (purchase, sales, and service). The way to clean it up was to have an extra batch (called "set completely invoiced") which has a special deletion routine, that handles necessary additional postings for items. Your case is somewhat easier to handle, what happened is that you received the item charge line. The deletion routine for purchase lines checks for "quantity received not invoiced", and in this case (item charge) this isn't necessary, since only a purchase receipt line is waiting for a "completely invoiced". No other entries exist. So, the way to do this would be:
- adapt the OnDelete() trigger of T39 Purchase Line for this case, or
- go the full way and implement the "force completely invoiced" functionality. Or buy it ;)
ether way, you would need help from your NAV Partner or inhouse Consultant.
with best regards
Jens