You will need to close the invoice manually in DEAR with the following steps:
1. To close the invoice:
- Use payments section on the bottom of the screen to apply payment remainder (of the invoice that was used as credit in Xero to a clearing account).
- Proceed to the credit note tab
- Use the additional costs section to refund the same amount using the same clearing account.
- The 2 amounts will net each other off leaving a NIL balance in this clearing account.