Create an AR invoice (invoice 1) , complete and post
(debits AR Control $100)
create a reversal of the AR invoice (invoice 2), complete and post
(credits AR Control $100)
A Payment Allocation is automatically created with a zero total and 2 lines:
line 1 debits AR control $100
line 2 credits AR control ($100)
Allocation line 1 which debits AR control has an invoice reference of Invoice 1 which also debits AR Control... so there are 2 debits of $100 to AR Control associated with Invoice 1.
same problem with allocation line 2.