Cancel Invoice with Credit Note

How to cancel in Invoice with a credit note in EdgeCTP and send to Xero