The main character (桐生) gets a request of the owner of an 揚屋 (we're talking Edo period here) to get rid of a guy squatting in front of said store, not bulging for days. As the MC beats up the guy, he learns that the guy wanted to buy one of the girls and hoped he could convince the owner by not giving in until he got what he wanted. Afterwards the owner thanks the MC and this is the conversation:
店員「ありがとうございました」
桐生「で、こいつが姫雀か。」*姫雀 is the name of the girl
店員「はい、そうなんです」
桐生「・・・ふぅ、まだ禿じゃないか」*禿 is defined here as a 遊女 of the lowest rank
店員「えぇ、何から何までちょっとはずれたヤツでして・・・本当に助かりました」
The bolded part is where I'm lost and I really don't know what the sentence is trying to say here. I understand 何から何まで means something like すべて、みんな、一から十まで and is seen in phrases like 何から何までありがとうございます or 何から何までお世話になりました but I can't really place its usage here. Furthermore, I don't know who ヤツ is refering to here, the guy causing trouble or the girl? Also what does はずれたヤツ mean? Or is it ちょっとは ずれたヤツ? Still couldn't explain the meaning though.
https://www.youtube.com/watch?v=PRPGjhgVDG8 Here is a video of the scene, with the bit from above starting at 4:36. It's only a few seconds long and it may make things clearer; maybe the formatting of the lines in the dialogue boxes is important? The line in question is formatted like this:
えぇ、何から何まで
ちょっとはずれたヤツでして・・・
本当に助かりました。
I don't know if this is important or not, but I thought I'd point it out nevertheless.
As usual many thanks in advance for your help!