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.
- 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:
- 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.
- "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.
- 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
- 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.
- Check whether the difference is exactly rate × net. If it is, look at the engine, not the AP tool.
- 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.
- Read the configuration for that code: reference lists, override rules and product-category rules.
- 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
- Add the code to the zero-rate list, or add a 0% rule for the out-of-scope category, after confirming with the tax team that 0% is right.
- Correct the condition if it tests the wrong code.
- Re-code or repost the stuck invoices once the engine returns 0%.
How to prevent it
- Keep a regression case for every purchase tax code the business expects to be 0%, and run it after every change and upgrade.
- When an AP imbalance equals a full standard rate, check the engine’s zero-rating for that code first.