AP invoice stuck on "balance not zero" and the difference is exactly the standard VAT rate

A purchase tax code the business treats as 0% is not zero-rated in the engine. When the engine returns standard-rate VAT against a net vendor line, the document is out of balance by exactly that rate.

By Herb Park, Clarent Technologies

Symptom

Supplier invoices, often intercompany imports, get stuck in the AP automation tool’s posting control with "Balance not zero". The difference is exactly the standard VAT rate times the net amount. Some invoices with the same code post fine; others do not.

The document is out of balance by exactly the VAT the engine returned Posting lines for a stuck invoice (illustrative, using a 20% standard rate). Check whether the difference equals the standard rate times the net amount.
  • Line: 1; Item: Vendor line (net invoice amount); Debit: ; Credit: 10,000.00
  • Line: 2; Item: Expense; Debit: 10,000.00; Credit:
  • Line: 3; Item: Input VAT from the engine, 20%; Debit: 2,000.00; Credit:
  • Line: ; Item: Totals; Debit: 12,000.00; Credit: 10,000.00
  • Balance not zero: difference 2,000.00
  • (1) The vendor line is net, because the business treats this tax code as 0%.
  • (2) The engine returned standard rate VAT anyway, which adds a tax line nobody expected.
  • (3) The difference of 2,000.00 is the rate times the net amount. That pattern points at the engine.

What it usually means

The ERP tax code says 0%, but in an external-engine setup the ERP’s own rate decides nothing; the engine’s response does. If the engine returns standard-rate VAT and the vendor line is net, debits and credits differ by exactly that VAT. Three ways we have seen it happen:

  1. The code is not in the zero-rate list. A rule forces 0% for codes in a reference list (such as "exempt tax codes") and this code was never added.
  2. "Out of scope" has no rule. The code is mapped to an out-of-scope product category, but the company only has reduced and standard rules, so the category falls through to the standard rate.
  3. A condition tests the wrong code. The override rule lists a similar-looking code instead of this one (see CB-003).

How to confirm it

  1. Pull the request and response. Find the call where the tax code is passed explicitly with no override amount: that is the one returning the standard rate.
  2. Check whether the difference is exactly rate × net. If it is, look at the engine, not the AP tool.
  3. In the engine’s test tool, run the line with the problem code, with a code that works, and with standard determination; compare the rate and the rule that fired.
  4. Read the configuration for that code: reference lists, override rules and product-category rules.
Three test runs show which rule gives the problem code its rate Same line, three runs (illustrative codes and rule names). The rule that fired tells you where to look in the configuration.
  • Run: Problem code; Tax code passed: P0; Rate returned: 20%; Rule that fired: Country default, standard rate
  • Run: A code that works; Tax code passed: P1; Rate returned: 0%; Rule that fired: Zero rate for listed codes
  • Run: Standard determination; Tax code passed: (none); Rate returned: 20%; Rule that fired: Country default, standard rate
  • (1) The problem code falls through to the same default rule as a line with no code at all.
  • (2) The working code is caught by the zero rate rule. Compare how the two codes are configured.
  • (3) Standard determination shows what the engine does when no code steers it.

Fix

How to prevent it