In this article (8 sections)
The context
Step: tax calculation on the invoice line, in an org shared by several companies. They belong to one group, sit in different jurisdictions, sell from the same Salesforce org and invoice with Revenue Cloud Billing. Each one has its own tax rules and its own accounting periods, and must never apply another’s rate.
The problem
The tax policy can select the tax treatment by legal entity. With several entities, that’s exactly the guard needed. With only one, the selection has nothing to tell apart: every sale belongs to the same entity, so it filters nothing, and no error or warning says so.
A design that works in a multi-entity org therefore doesn’t carry over to a single-entity one, and the reverse is true too. The number of entities has to be known before the tax design starts.
The solution
With several entities, tax treatments and rates are tied to each entity and the tax policy selects by legal entity. Accounting periods are opened per entity too. A rate can’t cross from one company to another.
Flow
Two points to take from this diagram. First, it is the country of the billing profile that determines the rate, not the address on the order. I verified it in both directions on two orders with different addresses and the same profile. Second, no native mechanism varies the tax code by country: TaxTreatmentItem has no geographic field, and the standard decision table takes a code as input and returns a rate, so it can never produce one.
- Who — LegalEntity (who is selling), BillingAccount (who is billed)
- Which rule — TaxPolicy (how to choose), TaxTreatment (product × code)
- How much — TaxEngine (the calculator), TaxRate (code × country × period)
- Result — InvoiceLineTax (the only place the code lands)
How to set it up
- One treatment per entity, with the policy selecting on entity.
- Rates tied to the entity, so a rate can’t leak across.
- Periods per entity, keeping in mind that a period can’t exceed one year.
Alternatives
The choice here was a single Salesforce org, with tax scoped to each entity. Separate orgs give complete isolation, but cost cross-entity reporting plus a second copy of everything. That’s only worth it when the entities really share no customers.
For what comes next (which company invoices, and invoice numbering), see Multiple Legal Entities in Revenue Cloud: Assignment and Numbering.
In practice
- Count your legal entities before choosing the tax design. With only one, selection by entity does nothing.
- Tie treatments and rates to each entity, and select by entity in the tax policy.
- Open one accounting period per entity and per fiscal year.
- Test a sale from each entity and check that no rate crosses over.