Every import gets the wrong tax code: a rule copied from another country’s template

Companies cloned from a template inherit its rules. A rule that meant something narrow in the original country can match every transaction in the new one and overwrite the right tax code.

By Herb Park, Clarent Technologies

Symptom

Standard determination (no tax code passed in) returns the same special tax code for every import into one country. Purchase orders and invoices default to it and AP keeps re-coding them. Other countries built the same way look fine.

What it usually means

Large rollouts build each country’s company from a template country, and the template’s rules come along. Some encode a situation that was rare in the template country but is normal in the new one. The classic example: "if the ship-to is not in the EU, this is a drop ship; use code X". In an EU template country that fires only for genuine drop ships. Cloned into a non-EU country, every domestic receipt has a non-EU ship-to, so the rule fires on every import and overwrites the code its parent rule set correctly.

A close cousin is a one-character typo in a condition: the rule tests a code one letter off from the intended one. It is easy to miss because the rule’s name lists the right code.

How to confirm it

  1. Run the transaction through the engine’s test tool with standard determination and read the rule trail: which rules fired, in what order, and which one set the final code.
  2. Look for a child rule that overwrites the code its parent set.
  3. Read its conditions literally against this country’s facts. Is a test like "not EU" always true here? Does it list the exact code, letter for letter?
  4. Check sibling companies cloned from the same template.
The rule trail shows a child rule overwriting the code its parent set Rule trail for one import (illustrative codes and rule names). Read each condition against this country's facts, in the order the rules fired.
  • Order: 1; Rule: Imports (parent); Condition tested: Supplier is in another country; Result: Sets tax code P1
  • Order: 2; Rule: Drop ship (child); Condition tested: Ship-to is not in the EU; Result: Overwrites with tax code X9
  • Order: ; Rule: Final result; Condition tested: ; Result: Tax code X9
  • (1) The parent rule sets the right code for an import.
  • (2) This company is outside the EU, so "ship-to is not in the EU" is true on every domestic receipt.
  • (3) The last rule to fire wins, so every import ends with the drop ship code.

Fix

Tighten the condition so it only matches the case it was written for; for a drop-ship rule, add "and the ship-to country is not this company’s own country". For a typo, correct the code and rename the rule so the name matches the logic. Re-run standard determination, each explicit code, a domestic purchase and a true drop ship to make sure nothing else moved.

How to prevent it