I am currently in a situation (I am a technical manager) where the client has changed the source code itself, and I am told to accept the changes and continue working on this version. Technically, he owns the code, but he decided to make a change and did not inform me.
Its modifications will not follow any convention, no good practice and, because of a reporting requirement, have made a change to the data structure.
My boss told me to accept it and to occupy it. I replied by asking him then why should I impose any standard on my team if a customer ruined everything we took so much effort to maintain the quality of the code.
The customer acknowledged that he would agree to cancel the changes, but data has already been created with this change and canceling these changes would mean losing them.
Regardless of the details, my question remains. Should I accept the fact that the client has modified the source code and that I have to continue with it, or should I remain faithful to the standards of the team and refuse to continue?
Edit: I did some research on the subject but I found only topics on the ownership of the source code.