So, I tested this at my end and unfortunately only the posted invoices gets synced with Salesforce. When you unpost an invoice and perform a sync it gets deleted in Salesforce as well.
This is due to the reason that to cancel an invoice you first need to unpost it and there is no feature I am aware of at the moment which can retain the invoice record in salesforce.
Please let me know if I am missing anything.
If you feel that your idea would be beneficial and would like to convey this to our product team, I would recommend submitting a request for enhancement under our Community ‘Product Ideas’: http://community.zuora.com/t5/Ideas/ct-p/Ideas.
You can post your feature request and solicit direct input from the Product Management Team. You can also vote on features and post comments. The Product Management Team actively monitors the community and provides updates on feature requests when available.
In addition to our community, we have a quarterly product roadmap webinar delivered by the Product Management team. In this webinar, you will learn about our upcoming plans for feature development. To enroll, you can sign up using the link below- http://info.zuora.com/Opt-in-Customer-Communications_Opt-In-LP.html
... View more