MyCo has a smart dress code at all times. Suit, tie, shoes. Even if ClientCo turn up in shell suits and flip flops.
I don't mind observing on site regulations to comply with health and safety, or industry best practices. That is just courtesy.
I don not do appraisals, fill out holiday requests, attend client social functions. When you enforce any of these, with no notice, or contracted clause to back it up I politely decline.
This time, the gun was put to my head and I let them pull the trigger.
HTH.