Revenue Cloud project notebook, written by two Meir IT consultants who implement it.

What is Revenue Cloud?

Billing and Tax·Admin

Calculating Tax from the Billing Profile

Tax followed the order address, and finance couldn’t explain a rate from the customer record. Resolving it from the billing profile fixed that, because that record answers the question VAT actually asks.

Nathan Altmann · Revenue Cloud consultant at Meir IT

Published 3 min read

Admin path·10 of 12·Next: Keeping the ERP Boundary Clean

In 3 linesfor leadership

  1. VAT followed the order address, so finance could not explain a tax rate from the customer record.
  2. VAT depends on who is billed and where, which is what the billing profile records.
  3. Tax now comes from that profile and gives one rate per customer, tested in production on two orders.
In this article (6 sections)
  1. The problem
  2. The solution
  3. Setting it up
  4. The choice and its cost
  5. In practice
  6. Sources

The problem

Step: tax calculation on the invoice. The seller had one legal entity, customers inside and outside the EU, and an existing rate table to carry over into Revenue Cloud. Finance asked for one thing: be able to explain any rate on any invoice from the customer record alone.

The first setup took the address on the transaction, which is the obvious choice. It didn’t hold up. When finance asked “why does this invoice carry this rate?”, nobody could answer from the customer record, and the same customer could get different results from one order to the next.

The solution

An order address answers a delivery question: where the goods or the service go. VAT asks something else: who is invoiced, where, and under which tax identity. The same customer can be shipped to in one country and invoiced in another, so a rate taken from the order address moves with each delivery while the customer stays the same. Finance opens the customer record and finds nothing there that explains the rate.

The record that answers the VAT question is the billing profile. Resolving tax from it puts the explanation on the record finance actually looks at. The rate then resolves on the tax rate (TaxRate) by code × country, and the tax treatment carries the code. With a single legal entity, picking the treatment by legal entity (TaxPolicy.TreatmentSelection = LegalEntity) has nothing to tell apart, so the country distinction has to live in the rate rows.

Setting it up

  1. Give every account a billing profile with a country. Without a bill-to contact (BillToContactId), payment terms on the order and a delivery address, the profile produces nothing at all.
  2. Load the rates with the Revenue Cloud usage type, one row per code × country × period. Load zero-rate rows explicitly: a missing row and a zero row look the same on the invoice, but only the zero row is a decision someone made.
  3. Attach the tax policy to the product, not to the line. A reprice derives the treatment from the product again, so anything set only on the line is lost.
  4. Run the two-order test: two orders with different addresses and the same billing profile. They must return the same rate.

The choice and its cost

The transaction address was ruled out: it is only right when the invoice always follows the delivery, which wasn’t the case here.

The billing profile has a cost. A customer who needs two tax behaviors needs two billing profiles. In exchange, any rate can be explained from one record, and a change of billing country is a data change rather than a reconfiguration. The two-order test passed in production: different addresses, same billing profile, same rate.

In practice

  • Resolve VAT from the billing profile, not from the order address.
  • Load zero rates explicitly, one row per code × country × period.
  • Attach the tax policy to the product, so a reprice doesn’t undo it.
  • Keep the two-order test in the test plan: two addresses, one billing profile, the rate must not change.

Sources

  1. Billing Fields on BillingAccount
  2. TaxPolicy
  3. Billing Fields on TaxRate
  4. TaxTreatment
A technical question about this article?

A question about this article? I reply within 48 hours.

Something unclear, a mistake, or different behavior in your Salesforce org? Write to me.

Prefer email? Write to nathan@meir-it.com

Get notified of new articles

Type at least two letters.