An incoming document of a purchase invoice has already been posted. Accidentally I’ve imported this document as an incoming document twice, posted it once and also created this invoice as a unposted purchase invoice.
When I try to post it, the system gives an error that there is already a posted purchase invoice for this invoice no, which is correct. But when I try to delete this unposted purchase invoice, the system gives this error: Posted should be equal to No in Incoming Document.
So how can I delete this unposted purchase invoice in the end?