A tax rule represents the tax territoriality principle, in other words, the calculation rules to be applied to determine the tax amount.
As a general rule, by crossing a tax rule linked to the BP with a Tax level, you can determine the tax code to be applied to the document line and so, to the entry line.
Specificities linked to inter-companies: for an intercompany invoice generated from a sales invoices, the tax codes of the purchase invoice lines are recovered from:
You can only enter one tax rule consistent with the legislation and group of the company at the given site.The general principles linked to the multi-legislation setup are detailed here.