I work for a consulting company as a developer in Italy. A month ago a major client demanded a replacement for a developer who worked there on a project due to concerns about the quality of their work. A week and an interview later I was put on their project and got a chance to look at the work I inherited, which was awful. I alerted the project manager and the client of the issues with the code that are putting the upcoming release at risk. They're understandably upset and have demanded a refund for the work performed by the previous consultant.
My management has agreed to refund the client for a full month but have informed me they'll be taking that money from my salary. They're saying that they don't want to start legal proceedings to get the money back from the previous consultant.
Now I enjoy what I do, but I obviously work for money and I don't see how I'm responsible for the previous consultants problems. How can I push back against this decision? Or should I be talking to a lawyer instead of trying to work this out?
As it seems relevant: I'm not a PARTITA IVA (VAT) employee; I have a canonical indeterminate-term contract.