MYSQL Deadlock on v12

How to fix this?

It seems that your sales invoice is saving a too heavy data or the server is too busy. Try to resubmit it. If the error still exist can you elaborate your problem.

I have restarted the server and so far so good.