The adjusting entry should be using the exact accounts that was used on the initial invoice if it was current year, or to bad debts/allowance to doubtful accounts (with taxes properly backed out) if it was a prior year invoice.
If you are debiting the same account you had credited to record the revenue, there should be no posting problems.
...IMO :-)