The very, very easy solution is for every corporate entity to be taxed on revenue in each jurisdiction. E.g. if I am in the UK and I spend £4 on a coffee in Starbucks then their legal entity in the UK now owes the taxman £0.40 (for example). How they pay their operating costs and internally transfer the remainder of £3.60 to their parent company is up to them.