If you’ve posted a payment or credit against an invoice in error, you can use the Unallocate option to unlink the transactions. A purchase payment (PP) becomes a payment on account (PA) when it’s unallocated. The transaction can allocate to a different invoice now.