Can we turn on auto archiving for sales invoice. It is possible to turn on auto archiving for sales orders. But for sales invoice is it possible?
[quote user="Josh Anglesea"]
Permissions would be tricky given the table in question is used for all sales documents - orders, quotes, return orders, credit memos etc.
Some things to try instead. Turn on the change log so you can find out who the culprit is - follow this guide: docs.microsoft.com/.../across-log-changes
The other thing is to turn on auto archiving for sales invoices. This will create a backup of the invoice. I believe restoring is possible from there.
A preventative measure would probably be with a modification. An event subscriber for the OnDelete action of the page. This should be a last resort if the change log breeds no results and training doesn’t take place
[/quote]