The rule is 10k per solo traveler or 20k per family. It's something they can use to exclude you if they want to, but as everyone is saying it's hardly ever enforced. It's okay if you have it in a foreign currency, just don't plan on using a debit card to get it. Better to just bring it. If you don't have 10 thousand baht equivalent, how are you going to travel anyway?