I was working for a company in France, while based in Latvia, and we worked according to B2B contract and I was just invoicing them and paid all my taxes. No problem.
True, that can be a useful solution. But you have to be careful; when I was running a UK-based company we had to get lawyers to carefully draft the contract so that it fulfilled the requirements to be truly B2B and not be something that would be deemed employment. I would expect the rules around that kind of thing to be even tougher in France, if anything.
gpjt|1 year ago