I'm currently in a situation (i'm a technical lead) where the client has modified on his own the source code, and i'm being told to accept the changes and keep working on that version. Technically he owns the code, but, he decided to make a change, and didn't made me aware of it.
His changes won't follow any convention, any good practice and in fact due to a report requirement, made a modification on the data structure.
My boss, told me to accept it and deal with it. I've replied to him by asking then why should I impose any sort of standard to my team if a client would just ruin anything that we've taken so much effort to maintain, which is, code quality.
The client did recognized that he would accept to undo the changes, but, data has already been created with this change, and to undo the changes would mean to lose them.
Regardless of the details, my question remains. Should i accept the fact that the client has modified the source code and I have to continue on with it, or should I remain true to the teams standards and refuse to continue.
Edit: I've researched on the matter but i've only found topics on sourcecode ownership.
Edit: As some have suggested that I should offer the client to refactor the code and improve it, I must clarify that as it currently stands, the client made a change to the data structure both on the database and code (changed a dynamic list type of structure to one of fixed columns resulting in 5 fixed items), the reason was just that they needed to make reports straight from sql. I've found out about this after it went live on production and approximately 1500 records had been created. Way before I suggested to clean the code, I realized that doing so would mean to either lose the data created, as it wouldn't be compatible, or that I would need to migrate the data to a new structure. The client did acknowledged that they did it to get out of a hurry and skip making a request to us.